Merge pull request #314 from prampec/patch-1
Introduce digital pin definitions
This commit is contained in:
commit
e669a01bc1
1 changed files with 22 additions and 4 deletions
|
|
@ -66,18 +66,36 @@
|
|||
// #define digitalPinToTimer(P)
|
||||
|
||||
|
||||
// Digital pins
|
||||
// ----
|
||||
#define PIN_D4 (4u)
|
||||
#define PIN_D5 (5u)
|
||||
#define PIN_D7 (7u)
|
||||
#define PIN_D8 (8u)
|
||||
#define PIN_D11 (25u)
|
||||
#define PIN_D12 (26u)
|
||||
#define PIN_D13 (13u)
|
||||
|
||||
#define D4 PIN_D4
|
||||
#define D5 PIN_D5
|
||||
#define D7 PIN_D7
|
||||
#define D8 PIN_D8
|
||||
#define D11 PIN_D11
|
||||
#define D12 PIN_D12
|
||||
#define D13 PIN_D13
|
||||
|
||||
// LEDs
|
||||
// ----
|
||||
#define PIN_LED_13 (13u)
|
||||
#define PIN_LED_13 (D13)
|
||||
#define PIN_LED PIN_LED_13
|
||||
#define LED_BUILTIN PIN_LED
|
||||
|
||||
// Neopixel
|
||||
#define PIN_NEOPIXEL 8
|
||||
#define PIN_NEOPIXEL D8
|
||||
#define NEOPIXEL_NUM 10
|
||||
|
||||
#define PIN_BUTTON1 4 // Left Button
|
||||
#define PIN_BUTTON2 5 // Right Button
|
||||
#define PIN_BUTTON1 D4 // Left Button
|
||||
#define PIN_BUTTON2 D5 // Right Button
|
||||
|
||||
|
||||
//#define PIN_LED_RXL (25u)
|
||||
|
|
|
|||
Loading…
Reference in a new issue