it all depends... how you go for it. But yes, memory is a factor as well as the processing.
Unfortunately, you can go only once every minute after the plain image in the store and for performance it is best to know the bounding boxes of your hands.
Let's have a walk thru the sencarios:
---event: watch turns on
draw image from store
draw hour hand
remember hour hand bounding box
draw minute hand
remember minute hand bounding box
calculate bounding box of second hand
capture image in second hand bounding box from display buffer and save it for restore when second hand has to change
draw second hand
--- event: second hand changes to non-full-minute value (any from 1 thru 59)
restore saved data to restore current image of passed second
resume at 7.
--- event: second hand changes to full-minute value (0)
restore saved data to restore current image of passed second
restore minute hand bounding box from storage
restore hour hand bounding box from storage
17 resume at 3.
You can optimize 14, 15 and 16 to draw overlaps of all three bounding boxes only once.... give most relieve for 2:07 and :08, 4:22 and :23, 7:37 and:38 and 10:52 and :53.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
@FransM,
it all depends... how you go for it. But yes, memory is a factor as well as the processing.
Unfortunately, you can go only once every minute after the plain image in the store and for performance it is best to know the bounding boxes of your hands.
Let's have a walk thru the sencarios:
17 resume at 3.
You can optimize 14, 15 and 16 to draw overlaps of all three bounding boxes only once.... give most relieve for 2:07 and :08, 4:22 and :23, 7:37 and:38 and 10:52 and :53.