From 0b6aaff49b0bf7c427597c8e3b37c79251b5bd2a Mon Sep 17 00:00:00 2001 From: Jakub <106778416+MarekZegare4@users.noreply.github.com> Date: Fri, 22 May 2026 17:04:12 +0200 Subject: [PATCH] refactor(eink): collapse landscape/portrait build targets into one per serial mode MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Display rotation is now a runtime setting (Settings → Rotation), so separate build targets for landscape/portrait are redundant. Collapsed four envs into two: WioTrackerL1Eink_companion_radio_ble — BLE only WioTrackerL1Eink_companion_radio_dual — BLE + USB (DUAL_SERIAL) Default DISPLAY_ROTATION=1 (landscape, 250×122) moved to the shared base section; users adjust orientation via the in-app Settings screen. Co-Authored-By: Claude Sonnet 4.6 --- variants/wio-tracker-l1-eink/platformio.ini | 27 ++++----------------- 1 file changed, 5 insertions(+), 22 deletions(-) diff --git a/variants/wio-tracker-l1-eink/platformio.ini b/variants/wio-tracker-l1-eink/platformio.ini index 04a0df6e..0bb891db 100644 --- a/variants/wio-tracker-l1-eink/platformio.ini +++ b/variants/wio-tracker-l1-eink/platformio.ini @@ -18,6 +18,7 @@ build_flags = ${nrf52_base.build_flags} -D SX126X_CURRENT_LIMIT=140 -D SX126X_RX_BOOSTED_GAIN=1 -D EINK_DISPLAY_MODEL=GxEPD2_213_B74 + -D DISPLAY_ROTATION=1 -D GPS_BAUD_RATE=9600 -D ENV_PIN_SDA=PIN_WIRE1_SDA -D ENV_PIN_SCL=PIN_WIRE1_SCL @@ -53,32 +54,14 @@ lib_deps = ${nrf52_base.lib_deps} densaugeo/base64 @ ~1.4.0 end2endzone/NonBlockingRTTTL@^1.3.0 -; Landscape: 250×122 px (physical panel rotated 90°) -[env:WioTrackerL1Eink_companion_radio_ble_landscape] +; BLE only +[env:WioTrackerL1Eink_companion_radio_ble] extends = WioTrackerL1Eink -build_flags = ${WioTrackerL1Eink.build_flags} - -D DISPLAY_ROTATION=1 extra_scripts = post:create-uf2.py -; Portrait: 122×250 px (physical panel in native orientation) -[env:WioTrackerL1Eink_companion_radio_ble_portrait] +; Dual BLE+USB +[env:WioTrackerL1Eink_companion_radio_dual] extends = WioTrackerL1Eink build_flags = ${WioTrackerL1Eink.build_flags} - -D DISPLAY_ROTATION=0 -extra_scripts = post:create-uf2.py - -; Dual BLE+USB — landscape -[env:WioTrackerL1Eink_companion_radio_dual_landscape] -extends = WioTrackerL1Eink -build_flags = ${WioTrackerL1Eink.build_flags} - -D DISPLAY_ROTATION=1 - -D DUAL_SERIAL=1 -extra_scripts = post:create-uf2.py - -; Dual BLE+USB — portrait -[env:WioTrackerL1Eink_companion_radio_dual_portrait] -extends = WioTrackerL1Eink -build_flags = ${WioTrackerL1Eink.build_flags} - -D DISPLAY_ROTATION=0 -D DUAL_SERIAL=1 extra_scripts = post:create-uf2.py