TinyWATCH-S3 / Official-firmware

Official firmware for Unexpected Maker's TinyWATCH S3
GNU General Public License v3.0
16 stars 7 forks source link

Finish implementing cached sprites for controls and widgets #14

Open UnexpectedMaker opened 8 months ago

UnexpectedMaker commented 8 months ago

Controls and widgets don't update often, so having to redraw them every screen update is a silly use of resources and battery power, therefor we need to cache them into their sprites and only redraw them when they change state.

Easy for controls as they change on a user interaction or when they are initially drawn, but widgets can change in the background, so we need to find a way to know they have changes so we can force a redraw.

UnexpectedMaker commented 3 months ago

Finally some progress on this - have added support for Toggle and Button controls.