Tried a few combinations including writing cs to 0.
digitalWrite(B1,1); digitalWrite(B10,1); SPI1.setup({sck:A5, miso:A6, mosi:A7, baud:1000000 }); var max=require("MAX31855").connect(SPI1,B10/*CS*/); console.log(max.getTemp()); E.connectSDCard(SPI1,B1/*CS*/); console.log(require("fs").readdir());
>echo(0); { "temp": 63.5, "fault": 0 } ERROR: Unable to mount SD card : NOT_READY undefined =undefined >digitalWrite(B1,0) =undefined >digitalWrite(B10,0) =undefined >digitalRead(B1) =1 // this is the sd card that we are having trouble with >digitalRead(B10) =0 >console.log(max.getTemp()); { "temp": 26, "fault": 0 } =undefined >console.log(require("fs").readdir()); ERROR: Unable to mount SD card : NOT_READY undefined =undefined >digitalWrite(B1,1) =undefined >digitalWrite(B10,1) =undefined >digitalRead(B10) =1 >digitalRead(B1) =1 >console.log(max.getTemp()); { "temp": 26.25, "fault": 0 } =undefined >console.log(require("fs").readdir()); ERROR: Unable to mount SD card : NOT_READY undefined =undefined >digitalRead(B1) =1 >digitalRead(B10) =1
@Cale started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Tried a few combinations including writing cs to 0.