martinberlin / cale-idf

CalEPD is an Epaper component driver for the ESP-IDF framework with GFX and font support, optional touch interface, compatible with ESP32 / S2 / S3 / C3
https://fasani.de
Apache License 2.0
274 stars 25 forks source link

Make a demo-sleep-clock.cpp example #8

Closed martinberlin closed 4 years ago

martinberlin commented 4 years ago

Simple example to make an epaper clock that will initially make a request to internet to get the time. And then will update every N minutes refreshing the epaper display. The objective of this is just to make an additional epaper demo and have some fun along the way. By no means this will be a precise clock!

  1. If is 00 hours or there is a IO button low force internet sync time
  2. Wakeup and increment the clock. Render super fast updating only that part of the epaper
  3. Keep hour / minute in the EPROM
  4. Go to deepsleep N minutes -> Repeat 1

1 day sprint. Max 2 days including release. Pending list:

esp32-epaper-clock

martinberlin commented 4 years ago

Add a state text in case it cannot connect to the Internet. It should keep on working and just mark the hour as updated leaving a message "Could not connect to WiFI" only till next refresh.

martinberlin commented 4 years ago

It's done and so far working as a wristwatch since months. The connect to internet still happens to block it, will add it later but it was just a demo so it's not high priority. Thanks for all the attention on this one!