From ae74b097d48472b0d4a97ac10c126579992c65e3 Mon Sep 17 00:00:00 2001 From: Klaus K Wilting Date: Wed, 29 Jul 2020 10:50:40 +0200 Subject: [PATCH] RTC lib update --- platformio.ini | 6 +++--- src/rtctime.cpp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/platformio.ini b/platformio.ini index 5449c8bc..ed0aa1bf 100644 --- a/platformio.ini +++ b/platformio.ini @@ -17,9 +17,9 @@ ;halfile = ttgov2.h ;halfile = ttgov21old.h ;halfile = ttgov21new.h -;halfile = ttgofox.h +halfile = ttgofox.h ;halfile = ttgobeam.h -halfile = ttgobeam10.h +;halfile = ttgobeam10.h ;halfile = fipy.h ;halfile = lopy.h ;halfile = lopy4.h @@ -80,7 +80,7 @@ lib_deps_sensors = lib_deps_basic = ArduinoJson@<6 76@>=1.2.4 ; #76 Timezone by Jack Christensen - 274@>=2.3.4 ; #274 RTC by Michael Miller + 274@>=2.3.5 ; #274 RTC by Michael Miller SimpleButton AXP202X_Library@>=1.1.1 ; AXP202 PMU lib by Lewis He esp32-micro-sdcard diff --git a/src/rtctime.cpp b/src/rtctime.cpp index a3fc2a31..29ad18c6 100644 --- a/src/rtctime.cpp +++ b/src/rtctime.cpp @@ -13,7 +13,7 @@ uint8_t rtc_init(void) { if (I2C_MUTEX_LOCK()) { // block i2c bus access Wire.begin(HAS_RTC); - Rtc.Begin(); + Rtc.Begin(MY_DISPLAY_SDA, MY_DISPLAY_SCL); // configure RTC chip Rtc.Enable32kHzPin(false);