Testing ESP32 M5Stack CoreInk device with a NTP sync clock
Please first export your credentials before build it:
export PIO_WIFI_SSID='your_wifi_name'
export PIO_WIFI_PASSWORD='your_wifi_passw'
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
Using PlatformIO, more easy than Arduino IDE, only run:
pio run --target upload
Press middle button and then power button, when it play a beep, release those. The beep means that NTP works fine.