We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5aeb02b commit 95eeb03Copy full SHA for 95eeb03
variants/lolin_c3_mini/pins_arduino.h
@@ -2,10 +2,18 @@
2
#define Pins_Arduino_h
3
4
#include <stdint.h>
5
+#include "soc/soc_caps.h"
6
-static const uint8_t LED_BUILTIN = 7;
7
+// based on https://www.wemos.cc/en/latest/c3/c3_mini.html
8
+// WS2812 RGB LED on pin 7
9
+#define PIN_RGB_LED 7
10
+// BUILTIN_LED can be used in new Arduino API digitalWrite() like in Blink.ino
11
+static const uint8_t LED_BUILTIN = SOC_GPIO_PIN_COUNT + PIN_RGB_LED;
12
#define BUILTIN_LED LED_BUILTIN // backward compatibility
13
#define LED_BUILTIN LED_BUILTIN // allow testing #ifdef LED_BUILTIN
14
+// RGB_BUILTIN and RGB_BRIGHTNESS can be used in new Arduino API rgbLedWrite()
15
+#define RGB_BUILTIN LED_BUILTIN
16
+#define RGB_BRIGHTNESS 64
17
18
static const uint8_t TX = 21;
19
static const uint8_t RX = 20;
0 commit comments