Closed smekras closed 2 months ago
The new linter rules picked up:
Check warning on line 29 in apps/smclock/app.js GitHub Actions / build
'showAnalogFace' is assigned a value but never used
Could you remove that variable or comment it out please.
Just looking at the code I think it looks good otherwise.
Just installed from your personal app loader with weird result (cutting edge firmware):
Trying the previous version (0.07) seems to work as expected:
When using the default 3bit mode I get this error:
____ _
| __|___ ___ ___ _ _|_|___ ___
| __|_ -| . | _| | | | | . |
|____|___| _|_| |___|_|_|_|___|
|_| espruino.com
2v22.15 (c) 2024 G.Williams
Uncaught Error: Palette specified, but must be a flat Uint16Array of 2,4,8,16,256 elements
at line 20 col 1422 in smclock.app.js
...ork;}g.drawImage(background);batColor=getBatteryColor(batLev...
^
in function "draw" called from line 20 col 2908 in smclock.app.js
...clear();pollBattery();draw();var batInterval=setInterval(pollBa...
^
>
4bit works as well as "work".
@smekras feel free to open this again if you want to. Closing for now.
Been a while since i made one of those. only changed stuff in my app.