Skip to content

Commit

Permalink
Merge pull request #314 from prampec/patch-1
Browse files Browse the repository at this point in the history
Introduce digital pin definitions
  • Loading branch information
hathach authored Dec 21, 2021
2 parents 1710c41 + e715d70 commit e669a01
Showing 1 changed file with 22 additions and 4 deletions.
26 changes: 22 additions & 4 deletions variants/circuitplay/variant.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e669a01

Please sign in to comment.