You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/* jshint esversion: 6 */
//File_IO_and_SD_cards.js
if ( process.env.BOARD == "ESP32") {
M5Stack = require("M5STACKS");
SPI1.setup({mosi:M5Stack.MOSI, miso:M5Stack.MISO, sck:M5Stack.SCK});
E.connectSDCard(SPI1, M5Stack.CS);
// see what's on the device
//console.log(require("fs").readdirSync());
}
if ( process.env.BOARD == "PICO_R1_3") {
// Wire up up MOSI, MISO, SCK and CS pins (along with 3.3v and GND)
SPI1.setup({mosi:B5, miso:B4, sck:B3});
E.connectSDCard(SPI1, B6 /*CS*/);
// see what's on the device
//console.log(require("fs").readdirSync());
}
No error on Pico, but this one on ESP32.
Uncaught Error: Unimplemented on Linux
at line 5 col 37
E.connectSDCard(SPI1, M5Stack.CS);
Are there some modules or -DSettings for ESP32 missing?
No error on Pico, but this one on ESP32.
Are there some modules or -DSettings for ESP32 missing?
Espruino/libs/filesystem/jswrap_file.c
Lines 145 to 162 in e568c6c
The text was updated successfully, but these errors were encountered: