fix battery and up button pins

pull/150/head
Torgny Bjers 2022-03-23 14:57:37 -04:00
parent b358aed0d1
commit 165de926d5
No known key found for this signature in database
GPG Key ID: 65918840686A0D2A
2 changed files with 3 additions and 3 deletions

View File

@ -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;
}

View File

@ -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