I solved the problem !!!! I didn't see that I swapped MISO and MOSI in my wiring... I saw it in the code that there must be something wrong. :)
The strange thing is that it worked with
var spi = new SPI(); spi.setup({mosi:B14,miso:B15,sck:B13}); E.connectSDCard(spi, A8);
but not with
SPI2.setup({mosi:B14,miso:B15,sck:B13}); E.connectSDCard(spi, A8);
Thank you so much for your patience and for your help Gordon!
@net-tobi 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.
I solved the problem !!!! I didn't see that I swapped MISO and MOSI in my wiring... I saw it in the code that there must be something wrong. :)
The strange thing is that it worked with
but not with
Thank you so much for your patience and for your help Gordon!