mirror of https://github.com/espruino/BangleApps
init hid camera app
parent
9f4d9bcb85
commit
1fff62e48d
|
@ -0,0 +1 @@
|
||||||
|
0.01: New App!
|
|
@ -0,0 +1,13 @@
|
||||||
|
// Create an entry in apps.json as follows:
|
||||||
|
{ "id": "7chname",
|
||||||
|
"name": "My app's human readable name",
|
||||||
|
"shortName":"Short Name",
|
||||||
|
"icon": "app.png",
|
||||||
|
"version":"0.01",
|
||||||
|
"description": "A detailed description of my great app",
|
||||||
|
"tags": "",
|
||||||
|
"storage": [
|
||||||
|
{"name":"7chname.app.js","url":"app.js"},
|
||||||
|
{"name":"7chname.img","url":"app-icon.js","evaluate":true}
|
||||||
|
]
|
||||||
|
}
|
|
@ -0,0 +1 @@
|
||||||
|
require("heatshrink").decompress(atob("mEwwJC/AH4A/AH4AgA=="))
|
|
@ -0,0 +1,12 @@
|
||||||
|
// 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
|
||||||
|
// If you clear the screen, do Bangle.drawWidgets();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
g.clear();
|
||||||
|
// call your app function here
|
Binary file not shown.
After Width: | Height: | Size: 1.6 KiB |
Loading…
Reference in New Issue