A beautiful real-time clock display for ESP32 with TFT touch screen, featuring both analog and digital time displays powered by DS1302 RTC module.
- π¨ Dual Display Modes - Elegant analog clock face with digital time overlay
- π Full Date Display - Shows current day, date, and year
- π§ Auto Time Sync - Automatically sets RTC to compile time on first upload
- π± Touch Screen Ready - Built for TFT touch displays
- β‘ ESP32 Powered - Fast and reliable timekeeping
- ESP32 Development Board
- TFT Touch Screen Display (configure pins in TFT_eSPI library)
- DS1302 RTC Module
- TFT_eSPI v2.5.43 - Display driver
- Rtc by Makuna v2.5.0 - Real-time clock control
- Install Libraries - Add TFT_eSPI and Rtc by Makuna through Arduino Library Manager
- Configure Display - Edit TFT_eSPI library's
User_Setup.hto match your display pins and specifications - Wire Hardware - Connect DS1302 RTC module to ESP32
- Upload Code - Flash
clock.inoto your ESP32 - Enjoy! - The clock will automatically set itself to the compile time
For quick flashing, use the included clock.ino.bin file with your favorite ESP32 flash tool.
On first boot, the clock automatically synchronizes the RTC module with the sketch's compilation timestamp, ensuring accurate timekeeping even after power loss. The display refreshes smoothly, showing both an analog clock face and digital time readout.
Open source and free to use for any purpose.
β Star this repo if you find it helpful!
