You are reading a single comment by @Cale and its replies. Click here to read the full conversation.
  • 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
    
About

Avatar for Cale @Cale started