init hid camera app

pull/324/head
paul 2020-04-17 16:55:35 +02:00
parent 9f4d9bcb85
commit 1fff62e48d
5 changed files with 27 additions and 0 deletions

1
apps/hidcam/ChangeLog Normal file
View File

@ -0,0 +1 @@
0.01: New App!

View File

@ -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}
]
}

1
apps/hidcam/app-icon.js Normal file
View File

@ -0,0 +1 @@
require("heatshrink").decompress(atob("mEwwJC/AH4A/AH4AgA=="))

12
apps/hidcam/app.js Normal file
View File

@ -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

BIN
apps/hidcam/app.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB