BangleApps icon indicating copy to clipboard operation
BangleApps copied to clipboard

smclock - Updated backgrounds

Open smekras opened this issue 9 months ago • 3 comments

Been a while since i made one of those. only changed stuff in my app.

smekras avatar May 09 '24 21:05 smekras

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.

thyttan avatar May 09 '24 21:05 thyttan

Just installed from your personal app loader with weird result (cutting edge firmware): image

Trying the previous version (0.07) seems to work as expected: image

thyttan avatar May 09 '24 22:05 thyttan

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".

thyttan avatar Jun 09 '24 22:06 thyttan

@smekras feel free to open this again if you want to. Closing for now.

thyttan avatar Sep 07 '24 21:09 thyttan