// 2. Print to Serial Monitor Serial.print(myRTC.hours); Serial.print(":"); Serial.print(myRTC.minutes); Serial.print(":"); Serial.println(myRTC.seconds);
void setup() // Wake up Wire.begin(); myRTC.updateTime(); Serial.println(myRTC.minutes); // Enter deep sleep for 1 minute ESP.deepSleep(60e6); virtuabotixrtch arduino library
Note: For heavy timestamp math, consider switching to RTClib. On tiny chips without hardware I2C, you can use any two digital pins: void setup() // Wake up Wire.begin()
// Initialize I2C LCD (16x2, address 0x27) LiquidCrystal_I2C lcd(0x27, 16, 2); Note: For heavy timestamp math