From abb97c40d823469a2b61c78c34d85c0d8130704d Mon Sep 17 00:00:00 2001 From: cottongin Date: Mon, 3 Aug 2026 11:12:34 -0400 Subject: [PATCH] =?UTF-8?q?fix:=20LittleFS=20partition=20label=20mismatch?= =?UTF-8?q?=20and=20display=20rotation=20(180=C2=B0)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Cursor --- partitions_custom.csv | 2 +- src/display_manager.cpp | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/partitions_custom.csv b/partitions_custom.csv index 3735d9e..dd48a23 100644 --- a/partitions_custom.csv +++ b/partitions_custom.csv @@ -3,5 +3,5 @@ nvs, data, nvs, 0x9000, 0x5000, otadata, data, ota, 0xe000, 0x2000, app0, app, ota_0, 0x10000, 0x680000, app1, app, ota_1, 0x690000, 0x680000, -littlefs, data, spiffs, 0xD10000, 0x80000, +spiffs, data, spiffs, 0xD10000, 0x80000, coredump, data, coredump, 0xD90000, 0x10000, diff --git a/src/display_manager.cpp b/src/display_manager.cpp index 9da5fae..0d55a7c 100644 --- a/src/display_manager.cpp +++ b/src/display_manager.cpp @@ -17,8 +17,7 @@ void DisplayManager::begin(PowerManager& power) { _display = &M5.Display; // Set rotation for landscape (device physically rotated) - // Rotation value depends on how the display is mounted — likely 1 or 3 - _display->setRotation(1); + _display->setRotation(3); Serial.printf("[display] Initialized: %dx%d, rotation=%d\n", _display->width(), _display->height(), _display->getRotation());