/* Draws a fullscreen image from flash memory Saves a small image to flash which is just the area where the clock is Keeps an offscreen buffer and draws the time to that */ g.clear(); //clears other apps's graphics var is12Hour = (require("Storage").readJSON("setting.json",1)||{})["12hour"]; var inf = require("Storage").readJSON("imgclock.face.json"); var img = require("Storage").read("imgclock.face.img"); var IX = inf.x, IY = inf.y, IBPP = inf.bpp; var IW = 174, IH = 45, OY = 24; if (inf.hideWidgets) OY=0; var bgwidth = img.charCodeAt(0); var bgoptions; if (bgwidth{ if (secondInterval) clearInterval(secondInterval); secondInterval = undefined; if (on) { secondInterval = setInterval(draw,1000); draw(); } });