add PIN_BUTTON for some variants

This commit is contained in:
hathach committed 2020-01-15 12:08:28 +07:00
1 parent 9de0ae2443
commit f4781e3e1c
4 files changed
+20 -12

No files matched your search

+3 -6
View File
@@ -55,13 +55,10 @@ extern "C"
#define LED_STATE_ON 1 // State when LED is litted
// Buttons
/*
#define PIN_BUTTON1 (2)
#define PIN_BUTTON2 (3)
#define PIN_BUTTON3 (4)
#define PIN_BUTTON4 (5)
*/
* Buttons
*/
#define PIN_BUTTON1 (7)
/*
* Analog pins
+4 -6
View File
@@ -55,13 +55,11 @@ extern "C"
#define LED_STATE_ON 1 // State when LED is litted
// Buttons
/*
#define PIN_BUTTON1 (2)
#define PIN_BUTTON2 (3)
#define PIN_BUTTON3 (4)
#define PIN_BUTTON4 (5)
*/
* Buttons
*/
#define PIN_BUTTON1 (37)
#define PIN_BUTTON2 (36)
/*
* Analog pins
+8
View File
@@ -54,6 +54,14 @@ extern "C"
#define LED_STATE_ON 0 // State when LED is litted
/*
* Buttons
*/
#define PIN_BUTTON1 11
#define PIN_BUTTON2 12
#define PIN_BUTTON3 24
#define PIN_BUTTON4 25
/*
* Analog pins
*/
+5
View File
@@ -54,6 +54,11 @@ extern "C"
#define LED_STATE_ON 0 // State when LED is litted
/*
* Buttons
*/
#define PIN_BUTTON1 2
#define PIN_DFU 2
// Buttons