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.........??
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.
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:
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
As soon as I disconnect the MAX31855 then the sd card works fine.........??