fix: LittleFS partition label mismatch and display rotation (180°)

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-03 11:12:34 -04:00
parent 93a83789f0
commit abb97c40d8
2 changed files with 2 additions and 3 deletions

View File

@@ -3,5 +3,5 @@ nvs, data, nvs, 0x9000, 0x5000,
otadata, data, ota, 0xe000, 0x2000, otadata, data, ota, 0xe000, 0x2000,
app0, app, ota_0, 0x10000, 0x680000, app0, app, ota_0, 0x10000, 0x680000,
app1, app, ota_1, 0x690000, 0x680000, app1, app, ota_1, 0x690000, 0x680000,
littlefs, data, spiffs, 0xD10000, 0x80000, spiffs, data, spiffs, 0xD10000, 0x80000,
coredump, data, coredump, 0xD90000, 0x10000, coredump, data, coredump, 0xD90000, 0x10000,
1 # Name Type SubType Offset Size Flags
3 otadata data ota 0xe000 0x2000
4 app0 app ota_0 0x10000 0x680000
5 app1 app ota_1 0x690000 0x680000
6 littlefs spiffs data spiffs 0xD10000 0x80000
7 coredump data coredump 0xD90000 0x10000

View File

@@ -17,8 +17,7 @@ void DisplayManager::begin(PowerManager& power) {
_display = &M5.Display; _display = &M5.Display;
// Set rotation for landscape (device physically rotated) // Set rotation for landscape (device physically rotated)
// Rotation value depends on how the display is mounted — likely 1 or 3 _display->setRotation(3);
_display->setRotation(1);
Serial.printf("[display] Initialized: %dx%d, rotation=%d\n", Serial.printf("[display] Initialized: %dx%d, rotation=%d\n",
_display->width(), _display->height(), _display->getRotation()); _display->width(), _display->height(), _display->getRotation());