Skip to content

add heltec-v4-r8 board#10268

Merged
thebentern merged 11 commits into
meshtastic:developfrom
Quency-D:heltec-v4-r8-board
Apr 27, 2026
Merged

add heltec-v4-r8 board#10268
thebentern merged 11 commits into
meshtastic:developfrom
Quency-D:heltec-v4-r8-board

Conversation

@Quency-D

Copy link
Copy Markdown
Contributor

The RAM has been increased compared to the original v4 to facilitate the use of more functions such as maps. However, the pinout is significantly different from the original v4 and incompatible, so a new model has been submitted.

The other two relevant commits are meshtastic/device-ui#308 and meshtastic/protobufs#898.

🤝 Attestations

  • I have tested that my proposed changes behave as described.
  • I have tested that my proposed changes do not cause any obvious regressions on the following devices:
    • Heltec (Lora32) V4
    • Heltec (Lora32) V4-TFT
    • Heltec (Lora32) V4-R8
    • Heltec (Lora32) V4-R8-TFT

@github-actions github-actions Bot added the hardware-support Hardware related: new devices or modules, problems specific to hardware label Apr 23, 2026
@thebentern thebentern requested review from caveman99, Copilot and mverch67 and removed request for mverch67 April 23, 2026 11:49

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds support for the Heltec WiFi LoRa 32 V4 “R8” (16MB flash / 8MB PSRAM) as a distinct hardware variant due to its incompatible pinout, and wires it into default firmware behavior for TFT/touch + RF frontend configuration.

Changes:

  • Introduces new ESP32-S3 variant definition for heltec_v4_r8 (pins, PlatformIO envs, and board JSON).
  • Updates TFT/touch configuration to support Heltec V4 / V4-R8 TFT specifics (touch I2C port selection, SPI 3-wire setting).
  • Extends defaults/curves to cover the new model (BT default-off for TFT, PA gain curve).

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
variants/esp32s3/heltec_v4_r8/variant.h Defines the Heltec V4 R8 pinout, LoRa + FEM wiring, and GPS pins.
variants/esp32s3/heltec_v4_r8/platformio.ini Adds PlatformIO environments for OLED and TFT builds, including display/touch/SD settings and libs.
variants/esp32s3/heltec_v4_r8/pins_arduino.h Provides Arduino core pin defaults for the new variant.
variants/esp32s3/heltec_v4/platformio.ini Adjusts Heltec V4 TFT touch I2C port and SPI 3-wire setting.
src/mesh/NodeDB.cpp Disables Bluetooth by default on HELTEC_V4_R8_TFT (consistent with other TFT targets).
src/graphics/TFTDisplay.cpp Extends Heltec-specific touch driver logic and makes SPI 3-wire configurable.
src/configuration.h Adds TX gain curve for HELTEC_V4_R8 with LoRa FEM enabled.
boards/heltec_v4_r8.json Adds PlatformIO board definition for Heltec V4 R8 (flash/PSRAM/memory type).

Comment thread variants/esp32s3/heltec_v4_r8/pins_arduino.h Outdated
Comment thread variants/esp32s3/heltec_v4_r8/platformio.ini Outdated
Comment thread src/graphics/TFTDisplay.cpp

@mverch67 mverch67 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've updated the platformio according my comments/changes in device-ui.

Note: latest device-ui commit depends on this PR and vice versa

Comment thread variants/esp32s3/heltec_v4_r8/platformio.ini Outdated
@thebentern thebentern merged commit f037ce2 into meshtastic:develop Apr 27, 2026
78 checks passed
thebentern added a commit that referenced this pull request Apr 27, 2026
* add heltec-v4-r8 board

* Fixed default SPI pin and macro definition errors.

* update platformio.ini according device-ui LGFX display definitions

Co-authored-by: Copilot <copilot@github.com>

* fix commit reference

---------

Co-authored-by: Ben Meadors <benmmeadors@gmail.com>
Co-authored-by: mverch67 <manuel.verch@gmx.de>
Co-authored-by: Copilot <copilot@github.com>
Co-authored-by: Manuel <71137295+mverch67@users.noreply.github.com>
mariotti pushed a commit to mariotti/firmware that referenced this pull request May 6, 2026
* add heltec-v4-r8 board

* Fixed default SPI pin and macro definition errors.

* update platformio.ini according device-ui LGFX display definitions

Co-authored-by: Copilot <copilot@github.com>

* fix commit reference

---------

Co-authored-by: Ben Meadors <benmmeadors@gmail.com>
Co-authored-by: mverch67 <manuel.verch@gmx.de>
Co-authored-by: Copilot <copilot@github.com>
Co-authored-by: Manuel <71137295+mverch67@users.noreply.github.com>
Evil8it pushed a commit to Evil8it/ME4TACTNK that referenced this pull request Jun 10, 2026
* add heltec-v4-r8 board

* Fixed default SPI pin and macro definition errors.

* update platformio.ini according device-ui LGFX display definitions

Co-authored-by: Copilot <copilot@github.com>

* fix commit reference

---------

Co-authored-by: Ben Meadors <benmmeadors@gmail.com>
Co-authored-by: mverch67 <manuel.verch@gmx.de>
Co-authored-by: Copilot <copilot@github.com>
Co-authored-by: Manuel <71137295+mverch67@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

hardware-support Hardware related: new devices or modules, problems specific to hardware

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants