feat(board): Add onboard LED support for Waveshare ESP32-S3 Zero #11630
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.
Description of Change
Defines the standard
LED_BUILTIN
andRGB_BUILTIN
macros for the Waveshare ESP32-S3 Zero, allowing its onboard WS2812 RGB LED to be controlled via standard Arduino APIs.The implementation follows the conventions established in the base ESP32-S3 variant file.
Tests scenarios
Tested on a Waveshare ESP32-S3-ZERO board using the arduino-esp32 core v3.2.1. The standard Blink example sketch successfully controls the onboard LED after applying this change.
Related links
https://www.waveshare.com/wiki/ESP32-S3-Zero#:~:text=ESP32%2DS3%2DZero%20uses%20GPIO21%20to%20connect%20with%20WS2812%20RGB%20LED.
https://github.com/espressif/arduino-esp32/blob/master/variants/esp32s3/pins_arduino.h