Feature/esp32 2424s012 board support - #37
Open
CrispinPZA wants to merge 2 commits into
Open
Conversation
The project targeted only the ESP32-C3 Super Mini with a separately wired GC9A01. Add support for the Sunton/JCZN ESP32-2424S012 integrated round board (different SPI pins, GPIO3 active-high backlight, BGR color order) without breaking the Super Mini default. - Add include/hardware/board.h + src/hardware/board.cpp: a board registry with a per-board pin/color-order table, compile-time default, and an NVS-backed runtime override. - Move display pins/color order out of config.h into the board registry. - lgfx_config: applyBoard() (re)configures the SPI bus and panel from a board. - display/radar_display: use the active board for pins, backlight, color order. Backlight is driven directly (the ESP32-C3 has only 6 LEDC channels). - Wi-Fi portal: add a Board dropdown; selection persists to NVS and reboots to apply, so one image can run on either board. - platformio.ini: add the esp32-2424s012 env (sets the build-time default). - README: document supported boards, wiring, build envs, and selection. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Print the active radar lat/lon (and whether it came from NVS or the default) at startup, and list each fetched aircraft's callsign/flight, position, altitude, track and ground speed. Aids debugging location and ADS-B issues. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
can this be merged please :) |
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.
Open confession - I'm a hobbiest coder and my mate claude helped me with this.
Love the idea but it did not work on the genric board I bought from AliExpress so we made it work. Sweet.
Adds support for the Sunton/JCZN ESP32-2424S012 — an ESP32-C3 with an integrated
1.28" round GC9A01 + CST816 touch — alongside the existing ESP32-C3 Super Mini.
The Super Mini remains the default, so existing users are unaffected.
How it works
include/hardware/board.h/src/hardware/board.cpp) holdsper-board display pins and color order in one table.
esp32-2424s012PlatformIO env,or at runtime via a new "Board" dropdown in the Wi-Fi setup portal (saved to
NVS, applied on reboot) — so one image runs on either board.
wired), GPIO3 active-high backlight (driven directly — the ESP32-C3 has only 6
LEDC channels), and BGR color order.
Also includes a small commit adding serial logging (radar location + per-aircraft
callsigns) that helped while bringing up the new board — happy to drop it if you'd
prefer to keep this PR focused.
Tested on real ESP32-2424S012 hardware: radar renders correctly and the portal
board selector works.