var fs = require('fs');
// Wire up up MOSI, MISO, SCK and CS pins
function onInit(){
SPI1.setup({mosi:B5, miso:B4, sck:B3});
E.connectSDCard(SPI1, A8 /*CS*/);
}
var text = "Hello World!\r\n";
function saveToFile(){
console.log('Append');
fs.appendFileSync('testing.txt', "\tTest line\r\n");
}
//setInterval(saveToFile, 2000);
I know the GPS is unplugged there by the way. I had it logging the GPS. I had it writing a like to a file. Now together I can't write to the SD and this first SD test isn't running.
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.
No I'm still stuck with
ERROR: Unable to mount SD card : NOT_READY
Here's my wiring
Here the code;
Here's how it executes;
I know the GPS is unplugged there by the way. I had it logging the GPS. I had it writing a like to a file. Now together I can't write to the SD and this first SD test isn't running.
I reflashed the pico too. same thing.