refactor(eink): collapse landscape/portrait build targets into one per serial mode

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 <noreply@anthropic.com>
This commit is contained in:
Jakub
2026-05-22 17:04:12 +02:00
parent 33ad70221e
commit 0b6aaff49b

View File

@@ -18,6 +18,7 @@ build_flags = ${nrf52_base.build_flags}
-D SX126X_CURRENT_LIMIT=140 -D SX126X_CURRENT_LIMIT=140
-D SX126X_RX_BOOSTED_GAIN=1 -D SX126X_RX_BOOSTED_GAIN=1
-D EINK_DISPLAY_MODEL=GxEPD2_213_B74 -D EINK_DISPLAY_MODEL=GxEPD2_213_B74
-D DISPLAY_ROTATION=1
-D GPS_BAUD_RATE=9600 -D GPS_BAUD_RATE=9600
-D ENV_PIN_SDA=PIN_WIRE1_SDA -D ENV_PIN_SDA=PIN_WIRE1_SDA
-D ENV_PIN_SCL=PIN_WIRE1_SCL -D ENV_PIN_SCL=PIN_WIRE1_SCL
@@ -53,32 +54,14 @@ lib_deps = ${nrf52_base.lib_deps}
densaugeo/base64 @ ~1.4.0 densaugeo/base64 @ ~1.4.0
end2endzone/NonBlockingRTTTL@^1.3.0 end2endzone/NonBlockingRTTTL@^1.3.0
; Landscape: 250×122 px (physical panel rotated 90°) ; BLE only
[env:WioTrackerL1Eink_companion_radio_ble_landscape] [env:WioTrackerL1Eink_companion_radio_ble]
extends = WioTrackerL1Eink extends = WioTrackerL1Eink
build_flags = ${WioTrackerL1Eink.build_flags}
-D DISPLAY_ROTATION=1
extra_scripts = post:create-uf2.py extra_scripts = post:create-uf2.py
; Portrait: 122×250 px (physical panel in native orientation) ; Dual BLE+USB
[env:WioTrackerL1Eink_companion_radio_ble_portrait] [env:WioTrackerL1Eink_companion_radio_dual]
extends = WioTrackerL1Eink extends = WioTrackerL1Eink
build_flags = ${WioTrackerL1Eink.build_flags} 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 -D DUAL_SERIAL=1
extra_scripts = post:create-uf2.py extra_scripts = post:create-uf2.py