Replies: 1 comment 1 reply
-
Try adding the following at the top of your code: #include <Wire.h> Then modify your void setup() {
Serial.begin(115200);
while(!Serial); // needed for Leonardo/Micro
Wire.begin(); // <---------------------------- add this
dsClock.setup();
} The Looking at my |
Beta Was this translation helpful? Give feedback.
-
Hello,
I am trying to add the AceTime library into a project to make a timer DST aware and struggling somewhat.
I don't think the library is detecting the RTC correctly . Using another library with the standard i2c pinout I am able to detect the RTC and serial print the time/date from it and it is correct.
I am using a DS3231 (DS3231SN) RTC for now (there is an atmel eeprom on there too) and have tried with a DOIT ESP32 DEVKIT v1 / Wemos LOLIN32 lite/ Wemos D1 (ESP8266) clone/ Arduino UNO along with V1.7.2
I am using the example found in the documentation (it can be a little bit tricky to follow with no comments within the code as the namespaces are a new concept to me.).
I get a static value for the epoch time that does not look correct -2147483648
Additionally i get an
<Invalid OffsetDateTime>
I am unsure where I am going wrong, but any advise would be awesome
Regards,
Beta Was this translation helpful? Give feedback.
All reactions