New answers tagged

0

I also have a DS3231 RTC in my robot project. Here's my complete setup code. This can be placed anywhere in setup(): I don't think you have to mess with individual registers to get what you want. if (rtc.begin()) //02/19/19 this now returns FALSE if RTC doesn't respond { Serial.println("Found RTC..."); delay(100); ...


0

I am posting a code please try it may be it can help you #include "RTClib.h" RTC_DS3231 rtc; char daysOfTheWeek[7][12] = {"Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"}; void setup () { Serial.begin(57600); #ifndef ESP8266 while (!Serial)...


2

I think your problem is here: if (RTC.read(tm)) { display.printTime(tm.Hour, tm.Minute, true); } This code displays the current time, and it runs on every single loop iteration. This is visibly not what you want. Your project should have at least two distinct operational modes: “display the current time” and “allow the user to input data”. You ...


0

According to your code, you’ve connected the Neopixel to D2. The RTC is an I2C device, so it’s also connected to D2. How is that supposed to work? The Neopixel isn’t an I2C device. Move the Neopixel to a different pin that’s not used by anything else - so not D1. Try D3. Update your code to use D3. There may be other issues but at least you won’t be trying ...


Top 50 recent answers are included