Detect SSD1306 and SH1106 screens on RAK boards

Use repeated status reads at screen initialization and preserve SSD1306 for ambiguous responses. Share the existing framebuffer, drawing, rotation and power handling; use SH1106 page transfers when detected.

Enable this for RAK4631 and RAK3401, including WisMesh Pocket v2/v3. Add controller overrides, protocol tests and CI coverage. Addresses meshcore-dev/MeshCore#3296.
This commit is contained in:
mikecarper committed 2026-10-20 09:43:25 -07:00
1 parent f57dffa2be
commit d5a6df6283
8 files changed
+729

No files matched your search

+13
View File
@@ -1059,6 +1059,19 @@ set display.rotation 270
The values are clockwise degrees. `0` clears the override and restores the
board's compiled default. Unsupported display drivers return an error.
RAK4631 and RAK3401 images detect SSD1306 or SH1106 OLED controllers when
initializing the screen. This lets the same RAK4631 image serve WisMesh Pocket
v2 and v3. Both retain rotation support and use one 1 KiB framebuffer.
Detection checks the configured `DISPLAY_ADDRESS` (default `0x3C`). Only
repeated SH1106 status readings select that controller; ambiguous responses
keep SSD1306, preserving compatibility with older RAK1921 panels. For panels
that cannot identify themselves, build with `OLED_CONTROLLER_OVERRIDE=1`
(SSD1306) or `=2` (SH1106); `=0` restores automatic detection.
See [the Pocket v3 issue](https://github.com/meshcore-dev/MeshCore/issues/3296)
and [the RAK1921 detection caveat](https://github.com/meshtastic/firmware/pull/11265).
---
## Show touchscreen touch areas