|
2 | 2 | #define Pins_Arduino_h
|
3 | 3 |
|
4 | 4 | #include <stdint.h>
|
| 5 | +#include "soc/soc_caps.h" |
5 | 6 |
|
6 | 7 | #define USB_VID 0x303a
|
7 | 8 | #define USB_PID 0x822B
|
8 | 9 | #define USB_MANUFACTURER "Waveshare"
|
9 | 10 | #define USB_PRODUCT "ESP32-S3-Zero"
|
10 | 11 | #define USB_SERIAL "" // Empty string for MAC address
|
11 | 12 |
|
12 | | -// Partial voltage measurement method |
| 13 | +// Onboard WS2812 RGB LED |
13 | 14 | #define WS_RGB 21
|
14 | 15 |
|
| 16 | +// BUILTIN_LED can be used in new Arduino API digitalWrite() like in Blink.ino |
| 17 | +static const uint8_t LED_BUILTIN = SOC_GPIO_PIN_COUNT + WS_RGB; |
| 18 | +#define BUILTIN_LED LED_BUILTIN // backward compatibility |
| 19 | +#define LED_BUILTIN LED_BUILTIN // allow testing #ifdef LED_BUILTIN |
| 20 | +// RGB_BUILTIN and RGB_BRIGHTNESS can be used in new Arduino API rgbLedWrite() |
| 21 | +#define RGB_BUILTIN LED_BUILTIN |
| 22 | +#define RGB_BRIGHTNESS 64 |
| 23 | + |
15 | 24 | // Mapping based on the ESP32S3 data sheet - alternate for OUTPUT
|
16 | 25 | static const uint8_t OUTPUT_IO1 = 1;
|
17 | 26 | static const uint8_t OUTPUT_IO2 = 2;
|
|
0 commit comments