The issue with Bold Clock appears to be due to a bug in Graphics.asImage - I filed a bug report here: https://github.com/espruino/Espruino/issues/1863
The simplest workaround appears to be to change these lines
let tick0 = Graphics.createArrayBuffer(30,8,1); tick0.fillRect(0,0,tick0.getWidth()-1, tick0.getHeight()-1); let tick5 = Graphics.createArrayBuffer(20,6,1); tick5.fillRect(0,0,tick5.getWidth()-1, tick5.getHeight()-1); let tick1 = Graphics.createArrayBuffer(8,4,1); tick1.fillRect(0,0,tick1.getWidth()-1, tick1.getHeight()-1);
to
let tick0 = Graphics.createArrayBuffer(30,8,1,{msb:true}); tick0.fillRect(0,0,tick0.getWidth()-1, tick0.getHeight()-1); let tick5 = Graphics.createArrayBuffer(20,6,1,{msb:true}); tick5.fillRect(0,0,tick5.getWidth()-1, tick5.getHeight()-1); let tick1 = Graphics.createArrayBuffer(8,4,1,{msb:true}); tick1.fillRect(0,0,tick1.getWidth()-1, tick1.getHeight()-1);
@NebbishHacker started
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.
The issue with Bold Clock appears to be due to a bug in Graphics.asImage - I filed a bug report here: https://github.com/espruino/Espruino/issues/1863
The simplest workaround appears to be to change these lines
to