mirror of https://github.com/sqfmi/Watchy.git
fix battery and up button pins
parent
b358aed0d1
commit
165de926d5
|
@ -955,7 +955,7 @@ bool Watchy::syncNTP(long gmt, int dst, String ntpServer){ //NTP sync - call aft
|
|||
return false; //NTP sync failed
|
||||
}
|
||||
tmElements_t tm;
|
||||
breakTime((time_t)timeClient.getEpochTime(), tm);
|
||||
breakTime((time_t)timeClient.getEpochTime(), tm);
|
||||
RTC.set(tm);
|
||||
return true;
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
//pins
|
||||
#define SDA 21
|
||||
#define SCL 22
|
||||
#define BATT_ADC_PIN 35 //v1.5 Watchy with PCF8563 RTC
|
||||
#define BATT_ADC_PIN 34
|
||||
#define RTC_INT_PIN GPIO_NUM_27
|
||||
#define DISPLAY_CS 5
|
||||
#define DISPLAY_DC 10
|
||||
|
@ -13,7 +13,7 @@
|
|||
#define VIB_MOTOR_PIN 13
|
||||
#define MENU_BTN_PIN 26
|
||||
#define BACK_BTN_PIN 25
|
||||
#define UP_BTN_PIN 32
|
||||
#define UP_BTN_PIN 35
|
||||
#define DOWN_BTN_PIN 4
|
||||
#define MENU_BTN_MASK GPIO_SEL_26
|
||||
#define BACK_BTN_MASK GPIO_SEL_25
|
||||
|
|
Loading…
Reference in New Issue