Repository navigation
SmallTV Pomodoro: open firmware for the GeekMagic SmallTV Ultra, built on core 3.1.2 (plus what we learned) #9346
davicorrea0
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi all! I'd like to share SmallTV Pomodoro, an open source (GPL-3.0) firmware for the GeekMagic SmallTV Ultra, the little
desk clock with an ESP-12F and a 240×240 ST7789 screen. It runs entirely on this core (3.1.2, arduino-cli).
What it does
drive it
It stays small. The whole firmware, with all of the above, is about 586 KB of flash (433 KB compressed for OTA),
and static RAM is about 36 KB, which leaves about 45 KB of the 80 KB for the heap. Animated faces are decoded in
RAM with 1–4 bits per pixel and only the parts of the screen that change are redrawn. This keeps photos, GIFs and
animated faces running on an ESP8266 without PSRAM.
Links
If you have one of these clocks, give it a try. Issues, ideas and new faces are very welcome.
What we learned on the way, in case it helps someone else on the ESP8266
now starts at block 32, and nothing is written while an eboot command is pending.
WiFi.persistent(): with persistence on,WiFi.mode()andsoftAP()write the SDK's flash sector. A "network lost→ portal → reboot" loop was rewriting it hundreds of times a day. We keep persistence off and only turn it on right
before a deliberate save. On 3.1.2,
WiFi.disconnect()anddisconnect(false)also erase the saved network, so weavoid them unless that is the goal.
.binor.bin.gz), sent in aheader instead of appended to the image. An early version that appended the signature to the
.gzbroke thebootloader.
backup and restore in the panel. Devices on the old layout still get an update that fits their 1 MB window.
analogWrite(software PWM in an NMI) to the hardware sigma-delta,because at very low duty a late edge shows up as a visible flash. That change is in testing now.
Thanks to everyone who maintains this core. Feedback is welcome, especially on anything we're doing that the core
already solves better.
All reactions