The DS1302 library examples didn't work in Arduino IDE. #135
-
I tested your DS1302 in Arduino IDE, the "ds1302" and "datecalc" were all not work, the former prompted: 'DS1302' does not name a type, the latter: Sorry, I confused this library with another "RTCLib by NeiroN", the prompt was:RTC lost confidence in the DateTime! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 16 replies
-
What Arduino Board are you using? What sketch are you using? The most common cases of this message are the pins are not connected correctly and/or the onboard battery is dead. |
Beta Was this translation helpful? Give feedback.
-
I found the reason: ` ThreeWire myWire(17,16,26); // IO, SCLK, CE // Since the board in experiment was Espduino // (Arduino UNO based on ESP32) // so pin-numbers according to Arduino UNO(4,5,2) // are IO(17,16,26) |
Beta Was this translation helpful? Give feedback.
What Arduino Board are you using?
What sketch are you using?
Include at least several lines of the serial output.
The most common cases of this message are the pins are not connected correctly and/or the onboard battery is dead.
https://github.com/Makuna/Rtc/wiki/FAQ-%235