Skip to content

Commit 4573695

Browse files
committed
fix: add variable for support internal built in switch
fix: add variable for support internal built in switch
1 parent 49b9464 commit 4573695

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

Diff for: variants/Geekble_ESP32C3/pins_arduino.h

+7-3
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,13 @@
33

44
#include <stdint.h>
55

6-
static const uint8_t LED_BUILTIN = 10;
7-
#define BUILTIN_LED LED_BUILTIN // backward compatibility
8-
#define LED_BUILTIN LED_BUILTIN // allow testing #ifdef LED_BUILTIN
6+
static const uint8_t LED_BUILTIN = 10;
7+
#define BUILTIN_LED LED_BUILTIN // backward compatibility
8+
#define LED_BUILTIN LED_BUILTIN // allow testing #ifdef LED_BUILTIN
9+
10+
static const uint8_t SW_BUILTIN = 9;
11+
#define BUILTIN_SW SW_BUILTIN // backward compatibility
12+
#define SW_BUILTIN SW_BUILTIN // allow testing #ifdef SW_BUILTIN
913

1014
static const uint8_t TX = 21;
1115
static const uint8_t RX = 20;

0 commit comments

Comments
 (0)