mirror of https://github.com/espruino/BangleApps
16 lines
286 B
JavaScript
16 lines
286 B
JavaScript
|
(() => {
|
||
|
|
||
|
// place your const, vars, functions or classes here
|
||
|
|
||
|
|
||
|
// special function to handle display switch on
|
||
|
Bangle.on('lcdPower', (on) => {
|
||
|
if (on) {
|
||
|
// call your app function here
|
||
|
}});
|
||
|
|
||
|
g.clear();
|
||
|
// call your app function here
|
||
|
|
||
|
})();
|