@@ -29,24 +29,22 @@ static const uint8_t RTC_INT_PIN = 27;
29
29
#if defined(ARDUINO_WATCHY_V10 )
30
30
static const uint8_t UP_BTN_PIN = 32 ;
31
31
static const uint8_t BATT_ADC_PIN = 33 ;
32
- #define UP_BTN_MASK GPIO_SEL_32
33
32
#define RTC_TYPE 1 //DS3231
34
33
#elif defined(ARDUINO_WATCHY_V15 )
35
34
static const uint8_t UP_BTN_PIN = 32 ;
36
35
static const uint8_t BATT_ADC_PIN = 35 ;
37
- #define UP_BTN_MASK GPIO_SEL_32
38
36
#define RTC_TYPE 2 //PCF8563
39
37
#elif defined(ARDUINO_WATCHY_V20 )
40
38
static const uint8_t UP_BTN_PIN = 35 ;
41
39
static const uint8_t BATT_ADC_PIN = 34 ;
42
- #define UP_BTN_MASK GPIO_SEL_35
43
40
#define RTC_TYPE 2 //PCF8563
44
41
#endif
45
42
46
- #define MENU_BTN_MASK GPIO_SEL_26
47
- #define BACK_BTN_MASK GPIO_SEL_25
48
- #define DOWN_BTN_MASK GPIO_SEL_4
49
- #define ACC_INT_MASK GPIO_SEL_14
43
+ #define UP_BTN_MASK (BIT64(UP_BTN_PIN))
44
+ #define MENU_BTN_MASK (BIT64(MENU_BTN_PIN))
45
+ #define BACK_BTN_MASK (BIT64(BACK_BTN_PIN))
46
+ #define DOWN_BTN_MASK (BIT64(DOWN_BTN_PIN))
47
+ #define ACC_INT_MASK (BIT64(ACC_INT_1_PIN))
50
48
#define BTN_PIN_MASK MENU_BTN_MASK | BACK_BTN_MASK | UP_BTN_MASK | DOWN_BTN_MASK
51
49
52
50
#endif /* Pins_Arduino_h */
0 commit comments