tbeam: add LilyGo T-Beam v1.x board support (ESP32 PICO-D4 + SX1276 + AXP192)#32
Draft
seagull9000 wants to merge 3 commits into
Draft
tbeam: add LilyGo T-Beam v1.x board support (ESP32 PICO-D4 + SX1276 + AXP192)#32seagull9000 wants to merge 3 commits into
seagull9000 wants to merge 3 commits into
Conversation
New board: LilyGo T-Beam v1.0/v1.1 (ESP32 PICO-D4 + SX1276 + AXP192)
boards/esp32/ttgo_tbeam/board.conf:
- SX127x loramac-node radio backend
- DIO flash mode (PICO-D4 QIO bootloop workaround)
- WiFi OTA opt-out (DRAM limit on classic PICO-D4)
boards/esp32/ttgo_tbeam/board.overlay:
- Replace AXP2101 alias with AXP192 (LDO2→LoRa 3.3V, LDO3→GPS 3.3V)
- LittleFS partition on internal flash
- LED polarity correction (active-low red LED)
- lora-tx-led alias for TX activity flash
adapters/board/ZephyrBoard.cpp:
- Battery voltage via AXP192 I2C registers 0x78/0x79 (12-bit, 1.1 mV/LSB)
- GPIO0 floated at boot to turn off the blue power-indicator LED
CMakeLists.txt:
- Allow board.conf to opt out of auto-WiFi-OTA inclusion
via CONFIG_ZEPHCORE_WIFI_OTA=n for boards with limited DRAM
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
BT blob reserves ~56 KB, leaving 136 KB for data+bss in dram0_0_seg. Reduce MAX_CONTACTS to 32 and MAX_CHANNELS to 8 (saves ~60 KB BSS). Enable &esp32_bt_hci in overlay (disabled by default in SoC DTSI). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
GPIO38 (gpio1 pin 6) is the user-accessible button on T-Beam v1.x. Add gpio-keys + input-longpress + input-multi-tap DT nodes to generate INPUT_KEY_A / INPUT_KEY_ENTER / INPUT_KEY_1 / INPUT_KEY_LEFT events, matching the input chain used by RAK4631/Heltec V4/Pocket builds. Short press wakes the display after auto-off and cycles pages. Long press triggers the page enter action. Two stale blank lines also removed from display.c (no logic change). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Author
|
Note: noise floor reading is not supported in current version - requires additional rssi PR. |
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.
Note
Draft — depends on #31 (fix/sx127x-lbt) being merged first.
The loramac-node backend holds a modem mutex during async RX; without that
fix, lora_config() returns -EBUSY on every TX attempt and all transmissions
are silently dropped.
Board
LilyGo T-Beam v1.0/v1.1 — ESP32 PICO-D4 (4 MB flash), SX1276 LoRa,
AXP192 PMIC, SSD1306 OLED, NEO-6M GPS.
Changes
boards/esp32/ttgo_tbeam/board.conf
boards/esp32/ttgo_tbeam/board.overlay
(LDO2 → LoRa 3.3 V, LDO3 → GPS 3.3 V)
adapters/board/ZephyrBoard.cpp
CMakeLists.txt
CONFIG_ZEPHCORE_WIFI_OTA=n, for boards with limited DRAM
Tested
Built and run on T-Beam v1.1 hardware: