Skip to content

Commit f4781e3

Browse files
committed
add PIN_BUTTON for some variants
1 parent 9de0ae2 commit f4781e3

File tree

4 files changed

+20
-12
lines changed

4 files changed

+20
-12
lines changed

variants/feather_nrf52840_express/variant.h

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,10 @@ extern "C"
5555

5656
#define LED_STATE_ON 1 // State when LED is litted
5757

58-
// Buttons
5958
/*
60-
#define PIN_BUTTON1 (2)
61-
#define PIN_BUTTON2 (3)
62-
#define PIN_BUTTON3 (4)
63-
#define PIN_BUTTON4 (5)
64-
*/
59+
* Buttons
60+
*/
61+
#define PIN_BUTTON1 (7)
6562

6663
/*
6764
* Analog pins

variants/metro_nrf52840_express/variant.h

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,11 @@ extern "C"
5555

5656
#define LED_STATE_ON 1 // State when LED is litted
5757

58-
// Buttons
5958
/*
60-
#define PIN_BUTTON1 (2)
61-
#define PIN_BUTTON2 (3)
62-
#define PIN_BUTTON3 (4)
63-
#define PIN_BUTTON4 (5)
64-
*/
59+
* Buttons
60+
*/
61+
#define PIN_BUTTON1 (37)
62+
#define PIN_BUTTON2 (36)
6563

6664
/*
6765
* Analog pins

variants/pca10056/variant.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,14 @@ extern "C"
5454

5555
#define LED_STATE_ON 0 // State when LED is litted
5656

57+
/*
58+
* Buttons
59+
*/
60+
#define PIN_BUTTON1 11
61+
#define PIN_BUTTON2 12
62+
#define PIN_BUTTON3 24
63+
#define PIN_BUTTON4 25
64+
5765
/*
5866
* Analog pins
5967
*/

variants/raytac_mdbt50q_rx/variant.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,11 @@ extern "C"
5454

5555
#define LED_STATE_ON 0 // State when LED is litted
5656

57+
/*
58+
* Buttons
59+
*/
60+
#define PIN_BUTTON1 2
61+
5762
#define PIN_DFU 2
5863

5964
// Buttons

0 commit comments

Comments
 (0)