You are reading a single comment by @AxelRHD and its replies.
Click here to read the full conversation.
-
@NebbishHacker & @Gordon, thank you both so much. Removing
g.clear()
did the job and I will check for the brightness in the settings-file.With the buffer I recognized that the normal
buf.setColor(r,g,b)
does not work and I have to use a color palette (Array) of 2/4/16 elements.buf.setColor(1)
is then the index inside the array? That works for me with indexes not larger 3 (4-element-array).
Yep, this :)
It's just handled here: https://github.com/espruino/BangleApps/blob/master/apps/setting/boot.js#L5
So you basically do what's in that code. Load the settings, check
settings.brightness
, job done :)