You are reading a single comment by @Cale and its replies. Click here to read the full conversation.
  • Should we not be able to have multiple spi devices on the same channel and separately called (CS) ? I have a temperature sensor MAX32855 and a sd card on a Pico. The intent is to have a few temperature sensors recording data to the sd card. Anyways here is the code:

    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()); 
    

    The problem is that the temps usually read fine (though sometimes they give random really high readings?) but when I access the sd card it errors

    ERROR: Unable to mount SD card : NOT_READY
    undefined
    

    As soon as I disconnect the MAX31855 then the sd card works fine.........??

About

Avatar for Cale @Cale started