Upgrade TTGO T-Beam Sup to be LilyGo T-Beam Supreme board support with AXP2101 and SH1106#303
Open
Bwooce wants to merge 4 commits intoG4lile0:betafrom
Open
Upgrade TTGO T-Beam Sup to be LilyGo T-Beam Supreme board support with AXP2101 and SH1106#303Bwooce wants to merge 4 commits intoG4lile0:betafrom
Bwooce wants to merge 4 commits intoG4lile0:betafrom
Conversation
The worldmap AJAX handler used 'x.status' (the console script's XMLHttpRequest variable) instead of 'wmx.status', causing the worldmap data to never update when both scripts are active.
getTZ() unconditionally skips the first 3 characters of the tz buffer for deduplication prefix removal. If the buffer is shorter than 3 characters (e.g. empty on first boot), this reads past the end. Return "GMT0" as a safe default when the buffer is too short.
The !p test packet command calls radio.sendTestPacket() which dereferences the radioHal pointer. On unconfigured boards where Radio::init() has not been called, radioHal is NULL, causing a crash. Add radio.isReady() check before attempting transmission.
Upgrades the existing TTGO_TBEAM_SX1262 board entry with full hardware support for the LilyGo T-Beam Supreme S3, a newer revision of the same board line. The original entry had basic pin mappings but lacked PMU support, display driver, and auto-detection. Board entry changes: - TCXO voltage 1.6V to 1.8V (Meshtastic/community standard) - LED pin uses SUPREME_LED define, GNSS pins mapped - Renamed to "433 Mhz LilyGo T-Beam Supreme SX1262" - Board index bounds check on boot prevents crash if enum changes New hardware support: - AXP2101 PMU on Wire1 (GPIO 42/41): battery voltage/percentage, VBUS, per-rail power control (ALDO1 sensors, ALDO3 radio, ALDO4 GNSS), sensor deep sleep, unused rails disabled - SH1106 OLED auto-detection with 5-minute display timeout - Auto-detection via AXP2101 probe on Wire1 in boardDetection() - DIO2 RF switch enable for SX1262/SX1268 - Battery voltage via Power API replacing raw analogRead(36) median-sort Includes board JSON, PlatformIO env, and setup documentation. 433 MHz SX1262 variant only.
5bd8c23 to
4316f1a
Compare
Author
|
I'm unsure if this should be called "433Mhz". It's not totally clear to me how the "this is what bands I am capable of" information is obtained; ideally we'd have one board def here for all the different bands (everything else is the same). |
Author
|
I have a follow on PR, assuming you like this one, to use the GPS for something useful in a configurable way. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Upgrades the existing
TTGO_TBEAM_SX1262board entry ("TTGO T-Beam Sup SX1262 V1.0") with full hardware support for the LilyGo T-Beam Supreme S3, which is a newer revision of the same board line. The existing entry had basic pin mappings but lacked PMU support, display driver, and auto-detection.Changes to the existing entry:
3toSUPREME_LEDdefine (same value, clearer intent)New functionality:
boardDetection()setDio2AsRfSwitch(true)for SX1262/SX1268 (standard behaviour, harmless on boards without external switch)analogRead(36)median-sort in MQTT_Clientboards/lilygo-t-beam-supreme.json: Custom PlatformIO board definition required because neither pioarduino nor the official espressif32 platform ship a T-Beam Supreme board. Defines 8MB flash (vs 4MB onttgo-t-beam), PSRAM, ESP32-S3 MCU, and USB CDC settings.This PR covers the 433 MHz SX1262 variant only. The 868/915 MHz variant shares identical pin mappings and would need a separate board entry with appropriate radio type.
Includes setup documentation in
doc/LilyGo_T-Beam_Supreme.md.14 files changed, 455 insertions, 127 deletions. Builds on all 6 PlatformIO environments. Tested on T-Beam Supreme 433 MHz hardware.
Depends on #302.
Built with AI assistance (Claude) under full human supervision, with on-device testing on T-Beam Supreme hardware.
Test plan