Skip to content

feat(board): Add onboard LED support for Waveshare ESP32-S3 Zero #11630

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 23, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion variants/waveshare_esp32_s3_zero/pins_arduino.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,25 @@
#define Pins_Arduino_h

#include <stdint.h>
#include "soc/soc_caps.h"

#define USB_VID 0x303a
#define USB_PID 0x822B
#define USB_MANUFACTURER "Waveshare"
#define USB_PRODUCT "ESP32-S3-Zero"
#define USB_SERIAL "" // Empty string for MAC address

// Partial voltage measurement method
// Onboard WS2812 RGB LED
#define WS_RGB 21

// BUILTIN_LED can be used in new Arduino API digitalWrite() like in Blink.ino
static const uint8_t LED_BUILTIN = SOC_GPIO_PIN_COUNT + WS_RGB;
#define BUILTIN_LED LED_BUILTIN // backward compatibility
#define LED_BUILTIN LED_BUILTIN // allow testing #ifdef LED_BUILTIN
// RGB_BUILTIN and RGB_BRIGHTNESS can be used in new Arduino API rgbLedWrite()
#define RGB_BUILTIN LED_BUILTIN
#define RGB_BRIGHTNESS 64

// Mapping based on the ESP32S3 data sheet - alternate for OUTPUT
static const uint8_t OUTPUT_IO1 = 1;
static const uint8_t OUTPUT_IO2 = 2;
Expand Down