Skip to content

boards/xtensa/esp32: Add LED support for#18831

Open
Shriyans406 wants to merge 1 commit intoapache:masterfrom
Shriyans406:boards/esp32/heltec_leds
Open

boards/xtensa/esp32: Add LED support for#18831
Shriyans406 wants to merge 1 commit intoapache:masterfrom
Shriyans406:boards/esp32/heltec_leds

Conversation

@Shriyans406
Copy link
Copy Markdown

@Shriyans406 Shriyans406 commented May 2, 2026

Summary

Added support for the onboard User LED on the Heltec WiFi LoRa 32 board. This board-specific implementation utilizes the standard NuttX User LED framework (/dev/userleds), mapping the white LED to GPIO 25. Cleaned up a conflicting legacy GPIO_LED1 definition.

Impact

Enables the /dev/userleds character device on the heltec_wifi_lora32 board. No impact on other boards or existing architectures.

Testing

Tested by building the heltec_wifi_lora32 configuration in a Linux environment. Verified the driver registration in esp32_bringup.c and validated the coding style using checkpatch.sh.

@github-actions github-actions Bot added Size: S The size of the change in this PR is small Board: xtensa labels May 2, 2026
@Shriyans406 Shriyans406 force-pushed the boards/esp32/heltec_leds branch from 69d120b to c830627 Compare May 2, 2026 11:43
@github-actions github-actions Bot added Size: M The size of the change in this PR is medium and removed Size: S The size of the change in this PR is small labels May 2, 2026
Copy link
Copy Markdown
Contributor

@linguini1 linguini1 left a comment

Choose a reason for hiding this comment

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

Thanks for the contribution! Please fill out the PR template according to the contribution guide, and also run ./tools/checkpatch.sh on your changes to make sure it meets the coding style (that is why CI is failing)

@Shriyans406 Shriyans406 force-pushed the boards/esp32/heltec_leds branch from c830627 to 7a04e7e Compare May 2, 2026 19:23
Heltec WiFi LoRa 32 board

This commit adds the User LED driver support for the Heltec WiFi LoRa 32
board. It implements the lower-half driver, maps the onboard white LED
to GPIO 25, and adds the necessary build system and initialization logic.

Signed-off-by: Shriyans Sahoo <shriyans.s.sahoo@gmail.com>
@Shriyans406 Shriyans406 force-pushed the boards/esp32/heltec_leds branch from 7a04e7e to 2fbefa9 Compare May 3, 2026 17:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Board: xtensa Size: M The size of the change in this PR is medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants