Ensure your Baud rate is set to 9600 to match Serial.begin(9600) .
: Typically uses a 3-wire serial interface (SCLK, I/O, and CE/Reset) rather than standard I2C. Instructables Key Library Methods virtuabotixRTC(SCLK, IO, CE) : Constructor to define the pins connected to the DS1302. virtuabotixrtch arduino library
lcd.setCursor(0, 1); lcd.print(myRTC.month); lcd.print("/"); lcd.print(myRTC.dayofmonth); lcd.print("/20"); lcd.print(myRTC.year); Ensure your Baud rate is set to 9600 to match Serial
Keeping Perfect Time: A Guide to the VirtuabotixRTC Arduino Library virtuabotixrtch arduino library
char dateString[20]; sprintf(dateString, "%02d/%02d/20%02d", myRTC.month, myRTC.dayofmonth, myRTC.year);