Gave it a spin, and it works pretty nice. Definitely a huge improvement over fiddling with pixels by hand.
One minor annoyance I ran into:
The smoothest way to simply update a bunch of labels with minimal flicker seems to be setting fillx: true and bgCol: g.theme.bg for every element and then do layout.update();layout.render(), but that clutters up the layout object.
(It annoyed me enough that I wrote some code to add those properties afterwards)
But maybe once it's baked into the firmware it will be fast enough that we can just do layout.clear();layout.update();layout.render() without too much flicker?
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.
Gave it a spin, and it works pretty nice. Definitely a huge improvement over fiddling with pixels by hand.
One minor annoyance I ran into:
The smoothest way to simply update a bunch of labels with minimal flicker seems to be setting
fillx: true
andbgCol: g.theme.bg
for every element and then dolayout.update();layout.render()
, but that clutters up the layout object.(It annoyed me enough that I wrote some code to add those properties afterwards)
But maybe once it's baked into the firmware it will be fast enough that we can just do
layout.clear();layout.update();layout.render()
without too much flicker?