Replace SD card storage with on-board Flash filesystem (FFat), allocating 9MB internal storage partition for keepsakes

This commit is contained in:
drjones
2026-07-04 23:21:44 -07:00
parent e7f2f09819
commit 778a2f4bfe
5 changed files with 22 additions and 35 deletions

View File

@@ -7,7 +7,7 @@ static int16_t ypos = 0;
// ── PNG callbacks ─────────────────────────────────────────────────────────────
static void* pngOpen(const char* filePath, int32_t* size) {
Image_file = SD_MMC.open(filePath);
Image_file = FFat.open(filePath);
if (!Image_file) { printf("PNG: failed to open %s\r\n", filePath); return nullptr; }
*size = Image_file.size();
return &Image_file;