Skip to content

Commit e715d70

Browse files
authored
Introduce digital pin definitions
Pin definitions are based on the schematics.
1 parent 1710c41 commit e715d70

File tree

1 file changed

+22
-4
lines changed

1 file changed

+22
-4
lines changed

variants/circuitplay/variant.h

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,18 +66,36 @@
6666
// #define digitalPinToTimer(P)
6767

6868

69+
// Digital pins
70+
// ----
71+
#define PIN_D4 (4u)
72+
#define PIN_D5 (5u)
73+
#define PIN_D7 (7u)
74+
#define PIN_D8 (8u)
75+
#define PIN_D11 (25u)
76+
#define PIN_D12 (26u)
77+
#define PIN_D13 (13u)
78+
79+
#define D4 PIN_D4
80+
#define D5 PIN_D5
81+
#define D7 PIN_D7
82+
#define D8 PIN_D8
83+
#define D11 PIN_D11
84+
#define D12 PIN_D12
85+
#define D13 PIN_D13
86+
6987
// LEDs
7088
// ----
71-
#define PIN_LED_13 (13u)
89+
#define PIN_LED_13 (D13)
7290
#define PIN_LED PIN_LED_13
7391
#define LED_BUILTIN PIN_LED
7492

7593
// Neopixel
76-
#define PIN_NEOPIXEL 8
94+
#define PIN_NEOPIXEL D8
7795
#define NEOPIXEL_NUM 10
7896

79-
#define PIN_BUTTON1 4 // Left Button
80-
#define PIN_BUTTON2 5 // Right Button
97+
#define PIN_BUTTON1 D4 // Left Button
98+
#define PIN_BUTTON2 D5 // Right Button
8199

82100

83101
//#define PIN_LED_RXL (25u)

0 commit comments

Comments
 (0)