https://github.com/sagar-koirala/m5stack_clock
A minimalist digital clock for M5Stack Core2 featuring NTP synchronization and a LVGL based UI design.
https://github.com/sagar-koirala/m5stack_clock
digitalclock lvgl lvgl-esp32 m5stack m5stack-core2 platformio
Last synced: 10 months ago
JSON representation
A minimalist digital clock for M5Stack Core2 featuring NTP synchronization and a LVGL based UI design.
- Host: GitHub
- URL: https://github.com/sagar-koirala/m5stack_clock
- Owner: sagar-koirala
- Created: 2025-03-08T09:07:32.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-08T09:17:14.000Z (about 1 year ago)
- Last Synced: 2025-03-08T10:23:24.656Z (about 1 year ago)
- Topics: digitalclock, lvgl, lvgl-esp32, m5stack, m5stack-core2, platformio
- Language: C
- Homepage:
- Size: 196 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# M5Stack NTP Clock

A minimalist digital clock for M5Stack Core2 featuring NTP synchronization and a clean, elegant display. Shows time, date, and day of week with precision and style.
## Key Features
- Minimalist UI with 12-hour time format and seconds display
- One-touch time synchronization via WiFi (hold center button for 5s)
- Battery-efficient design (WiFi only active during sync)
- RTC-backed timekeeping for accuracy when offline
## Hardware
- [M5Stack Core2](https://shop.m5stack.com/products/m5stack-core2-esp32-iot-development-kit)
## Quick Setup
1. **Clone & Configure:**
```
git clone https://github.com/yourusername/M5stack_Clock.git
cp src/secrets.h.template src/secrets.h
```
2. **Edit WiFi credentials** in `src/secrets.h`
3. **Build & Upload** using PlatformIO
## Usage
- **View time:** The clock displays automatically on power-up
- **Sync time:** Hold middle button (B) for 5 seconds
- **Time zone:** Currently set to GMT+7 (Bangkok)
- To change: Modify `gmtOffset_sec` in `main.cpp`
## Fonts Used
- [**BlackHanSans-Regular**](https://fonts.google.com/specimen/Black+Han+Sans)
## Tech Stack
Built with M5Core2 library, LVGL 8.3.6, and ESP32 Arduino framework.
---