From 06656d430829667d277f2d384bed9a3c5d015dcd Mon Sep 17 00:00:00 2001 From: agessaman Date: Fri, 28 Aug 2026 15:45:19 -0700 Subject: [PATCH] fix(display): default the R8 portrait panels to DISPLAY_ROTATION=0 Rotation 2 was consistently upside down on the Expansion Kit V2 panel, so 0 becomes the compiled default for both portrait observer targets. display.flip is unchanged and still defaults to off: the compiled constant should be the correct orientation, with the setting reserved for a board mounted the other way up. A node already carrying `display.flip 1` from testing needs `set display.flip 0` after this. Landscape targets are untouched - they take the driver's own DISPLAY_ROTATION default of 3. --- variants/heltec_v4_r8/platformio.ini | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/variants/heltec_v4_r8/platformio.ini b/variants/heltec_v4_r8/platformio.ini index cc6d5cc3..24b834c7 100644 --- a/variants/heltec_v4_r8/platformio.ini +++ b/variants/heltec_v4_r8/platformio.ini @@ -369,7 +369,9 @@ extends = env:heltec_v4_r8_tft_repeater_observer_mqtt build_flags = ${env:heltec_v4_r8_tft_repeater_observer_mqtt.build_flags} -D ST7789_PORTRAIT_PROFILE=1 - -D DISPLAY_ROTATION=2 +; Verified upright on the Expansion Kit V2 panel. `set display.flip 1` turns it +; 180 degrees for a board mounted the other way up. + -D DISPLAY_ROTATION=0 [env:heltec_v4_r8_tft_room_server] extends = heltec_v4_r8_tft @@ -448,7 +450,9 @@ extends = env:heltec_v4_r8_tft_room_server_observer_mqtt build_flags = ${env:heltec_v4_r8_tft_room_server_observer_mqtt.build_flags} -D ST7789_PORTRAIT_PROFILE=1 - -D DISPLAY_ROTATION=2 +; Verified upright on the Expansion Kit V2 panel. `set display.flip 1` turns it +; 180 degrees for a board mounted the other way up. + -D DISPLAY_ROTATION=0 [env:heltec_v4_r8_tft_terminal_chat] extends = heltec_v4_r8_tft