hpsaturn / m5coreink-ntp-clock

M5Stick CoreInk NTP clock example
GNU General Public License v3.0
9 stars 5 forks source link

M5Stack CoreInk NTP Clock

Testing ESP32 M5Stack CoreInk device with a NTP sync clock

Features

WiFi credentials

Please first export your credentials before build it:

export PIO_WIFI_SSID='your_wifi_name'
export PIO_WIFI_PASSWORD='your_wifi_passw'

NTP Config

Edit the main file in src and choose your time zone:

const char* NTP_SERVER = "ch.pool.ntp.org";
const char* TZ_INFO    = "CET-1CEST-2,M3.5.0/02:00:00,M10.5.0/03:00:00";

You can look up for your time zone here

Build and Install

Using PlatformIO, more easy than Arduino IDE, only run:

pio run --target upload

Usage

Press middle button and then power button, when it play a beep, release those. The beep means that NTP works fine.