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
I've already seen and read both #21 and #35. #35 just describes a work around which does work for EEPROM but not for littleFS and #21 is just about external flash. On any attempt to write to flash using littleFS both dvi output and the rest of the code crashes, stalls, locks up idk exactly what.
Heres the code I used to test this
#include<PicoDVI.h>
#include<LittleFS.h>
DVIGFX8 display(DVI_RES_320x240p60, true, adafruit_feather_dvi_cfg);
voidsetup() { // Runs once on startup
Serial.begin(9600);
while (!Serial)
delay(10); // Wait for Serial Monitor to open
Serial.println("Serial started");
LittleFSConfig cfg;
cfg.setAutoFormat(true);
LittleFS.setConfig(cfg);
if (!LittleFS.begin()) { // Blink LED if insufficient RAM
Serial.println("LittleFS failed to start");
} else {
Serial.println("LittleFS started");
}
if (!display.begin()) { // Blink LED if insufficient RAMpinMode(LED_BUILTIN, OUTPUT);
for (;;)
digitalWrite(LED_BUILTIN, (millis() / 1000) & 1);
}
Serial.println("display started");
display.setColor(0, 0x0000); // Color 0: Black
display.setColor(1, 0xFFFF); // Color 1: White
Serial.flush();
}
voidloop() {
display.fillScreen(1);
delay(3000);
display.fillScreen(0);
delay(3000);
File testFile = LittleFS.open("/Test.txt", "w");
Serial.println("LittleFS.open");
testFile.close();
Serial.println("testFile.close()");
delay(5000);
Serial.println("delay(5000);");
display.swap(false, true);
Serial.println("display.swap");
}
The text was updated successfully, but these errors were encountered:
I've already seen and read both #21 and #35. #35 just describes a work around which does work for EEPROM but not for littleFS and #21 is just about external flash. On any attempt to write to flash using littleFS both dvi output and the rest of the code crashes, stalls, locks up idk exactly what.
Heres the code I used to test this
The text was updated successfully, but these errors were encountered: