Thanks @rigrig yep this is basically exactly what I wanted - though it has the issue of flashing to the previous brightness for a split second every time a new app loads while on the quiet mode. That's a pretty minor issue given I likely won't be interacting with the watch much while quiet mode is on.
I wonder if there's a way of getting round that without also writing the global settings value like I'm doing above.
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.
Thanks @rigrig yep this is basically exactly what I wanted - though it has the issue of flashing to the previous brightness for a split second every time a new app loads while on the quiet mode. That's a pretty minor issue given I likely won't be interacting with the watch much while quiet mode is on.
I wonder if there's a way of getting round that without also writing the global settings value like I'm doing above.