diff --git a/apps/torch/app.js b/apps/torch/app.js index 28aa00bd6..36a992d8c 100644 --- a/apps/torch/app.js +++ b/apps/torch/app.js @@ -1,6 +1,13 @@ +const SETTINGS_FILE = "torch.json"; + +function loadSettings() { + settings = require("Storage").readJSON(SETTINGS_FILE,1)|| {'bg': '#FFFFFF', 'color': 'White'}; +} + Bangle.setLCDPower(1); Bangle.setLCDTimeout(0); g.reset(); +g.setColor(settings.bg); g.fillRect(0,0,g.getWidth(),g.getHeight()); // Any button turns off setWatch(()=>load(), BTN1);