From 165de926d5d2715f8c5dc933893bdd1ff10b6966 Mon Sep 17 00:00:00 2001 From: Torgny Bjers Date: Wed, 23 Mar 2022 14:57:37 -0400 Subject: [PATCH] fix battery and up button pins --- src/Watchy.cpp | 2 +- src/arduino_pins.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Watchy.cpp b/src/Watchy.cpp index 3f63529..b119d65 100644 --- a/src/Watchy.cpp +++ b/src/Watchy.cpp @@ -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; } diff --git a/src/arduino_pins.h b/src/arduino_pins.h index 454330a..24b88b1 100644 --- a/src/arduino_pins.h +++ b/src/arduino_pins.h @@ -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