Presto Flip Clock

Started dabbling with my Presto recently, and here’s my first finished project: Flip Clock

Code is here:

It reads a TIMEZONE_OFFSET parameter from secrets.py, inspired by “WiiM What’s Playing” (sorry, can’t link to it as “new users can only post one link per topic”).

It has dark and light mode, switch by tapping anywhere on the screen (note though, that you have to keep pressing ~1 second since there’s time.sleep(1), but figured that’s ok since not changing the mode that often). Or just change dark = True to dark = False if you want to default to light mode.

And change BG_COLOR to whatever you want to use as background. The script now has a gray bg as default, but the other image has orange bg BG_COLOR = display.create_pen(255, 141, 0)

Any feedback or comments are welcome.

3 Likes

Inspired by something like this:

And here’s the link that I couldn’t add in the initial post