hpsaturn / m5coreink-ntp-clock

M5Stick CoreInk NTP clock example

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

M5Stack CoreInk NTP Clock

Testing ESP32 M5Stack CoreInk device with a NTP sync clock

Features

  • eInk display refresh without any blink
  • shutdown with RTC implementation
  • run time is only 2 sec each minute
  • NTP sync beep confirmation
  • added implementation for ENVII hat (disabled for default)
  • detecting USB charging (only works with battery for now)
  • Clock features on Left/Right wheel button

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.


About

M5Stick CoreInk NTP clock example

License:GNU General Public License v3.0


Languages

Language:C 56.7%Language:C++ 42.7%Language:Objective-C 0.6%