Skip to content

Ethernet interface - #10

Merged
PSi86 merged 2 commits into
mainfrom
ethernet-interface
Jun 2, 2026
Merged

PSi86 merged 2 commits into
mainfrom
ethernet-interface

Conversation

@PSi86

@PSi86 PSi86 commented Jun 2, 2026

Copy link
Copy Markdown
Owner

This pull request adds support for the Heltec Wireless Paper (ESP32-S3) as a new RaceLink Startblock hardware variant (device type 51), refactors the e-paper panel handling to support multiple panel types, and generalizes Startblock-specific logic for easier future hardware additions. It also introduces a new build profile, updates device type enums, and improves pin/power management for the e-paper display.

Support for Heltec Wireless Paper Startblock:

  • Added a new build profile RaceLink_Node_v6_s3_heltec_wpaper.platformio_override.ini for the Heltec Wireless Paper, specifying hardware details, pin assignments, and dependencies (notably, the Meshtastic GxEPD2 fork for special e-paper support).
  • Registered device type 51 (NODE_WLED_STARTBLOCK_HWP) for the Heltec Wireless Paper Startblock in the device type enum.

E-paper panel abstraction and initialization:

  • Refactored e-paper panel class selection to support both SSD1682 and JD79656-based 2.13" panels, using compile-time flags to select the correct driver and constructor signature, and abstracted panel configuration into a single class. [1] [2]
  • Adjusted initialization logic to handle differences between the Meshtastic GxEPD2 fork and upstream GxEPD2, ensuring proper SPI setup and reset behavior for both panel types.
  • Added support for optional external power switching (e.g., Vext on GPIO 45) for e-paper panels, with configurable logic level and boot-time activation. [1] [2]

Generalization and codebase cleanup for Startblock devices:

  • Introduced the RACELINK_STARTBLOCK macro to gate Startblock-specific logic, allowing both v3 and v6 Startblock hardware (device types 50 and 51) to share configuration and rendering code. Updated all relevant checks in the codebase to use this macro instead of hardcoding device type 50. [1] [2] [3] [4] [5] [6] [7] [8]

Build and test infrastructure:

  • Updated the release profiles script and tests to include the new v5 (ETH) and v6 (Heltec Wireless Paper) build profiles, ensuring these are part of the shipping builds and CI checks. [1] [2]

PSi86 added 2 commits June 3, 2026 00:01
New profile RaceLink_Node_v6_s3_heltec_wpaper: ESP32-S3 + SX1262 LoRa + 2.13in 250x122 e-paper. The panel is the E0213A367 (SSD1682), driven via GxEPD2_213_E0213A367 from the Meshtastic GxEPD2 fork. Heltec ships this board with two different panels, so the GxEPD2 panel class is now compile-time selectable (RACELINK_EPAPER_PANEL_E0213A367 / _FC1 / default GDEY037T03).

Add Vext (GPIO45, active-low) e-ink power enable before epaperInit; cold init uses initial=true for the fork panels so the hardware reset runs.

Replace the DEV_TYPE==50 Startblock gates with a RACELINK_STARTBLOCK flag set for DEV_TYPE 50 or 51, so the Heltec board (51) shares the v3 Startblock pilot-slot/e-paper feature set.

Register v5 (ETH) and v6 in SHIPPING_PROFILE_FILENAMES and update the shipping-profiles test.
Reference-only enum consumed by the host device-type import script; lets it label the Heltec Wireless Paper Startblock (DEV_TYPE 51). No firmware behavior change.
@PSi86
PSi86 merged commit 34896fe into main Jun 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant