pull/605/head
Gordon Williams 2020-12-03 15:19:24 +00:00
parent d86e4c4611
commit 49f0b8841d
4 changed files with 41 additions and 22 deletions

View File

@ -2424,26 +2424,38 @@
] ]
}, },
{ "id": "supmariodark", { "id": "supmariodark",
"name": "Super mario clock night mode", "name": "Super mario clock night mode",
"shortName":"supmariodark", "shortName":"supmariodark",
"icon": "supmariodark.png", "icon": "supmariodark.png",
"version":"0.01", "version":"0.01",
"description": "Super mario clock in night mode", "description": "Super mario clock in night mode",
"tags": "clock", "tags": "clock",
"type" : "clock", "type" : "clock",
"storage": [ "storage": [
{"name":"supmariodark.app.js","url":"supmariodark.js"}, {"name":"supmariodark.app.js","url":"supmariodark.js"},
{"name":"supmariodark.img","url":"supmariodark-icon.js","evaluate":true}, {"name":"supmariodark.img","url":"supmariodark-icon.js","evaluate":true},
{"name":"supmario30x24.bin","url":"supmario30x24.bin.js"}, {"name":"supmario30x24.bin","url":"supmario30x24.bin.js"},
{"name":"supmario30x24.wdt","url":"supmario30x24.wdt.js"}, {"name":"supmario30x24.wdt","url":"supmario30x24.wdt.js"},
{"name":"banner-up.img","url":"banner-up.js","evaluate":true}, {"name":"banner-up.img","url":"banner-up.js","evaluate":true},
{"name":"banner-down.img","url":"banner-down.js","evaluate":true}, {"name":"banner-down.img","url":"banner-down.js","evaluate":true},
{"name":"brick2.img","url":"brick2.js","evaluate":true}, {"name":"brick2.img","url":"brick2.js","evaluate":true},
{"name":"enemy.img","url":"enemy.js","evaluate":true}, {"name":"enemy.img","url":"enemy.js","evaluate":true},
{"name":"flower.img","url":"flower.js","evaluate":true}, {"name":"flower.img","url":"flower.js","evaluate":true},
{"name":"flower_b.img","url":"flower_b.js","evaluate":true}, {"name":"flower_b.img","url":"flower_b.js","evaluate":true},
{"name":"mario_wh.img","url":"mario_wh.js","evaluate":true}, {"name":"mario_wh.img","url":"mario_wh.js","evaluate":true},
{"name":"pipe.img","url":"pipe.js","evaluate":true} {"name":"pipe.img","url":"pipe.js","evaluate":true}
] ]
} },
{ "id": "gmeter",
"name": "G-Meter",
"shortName":"G-Meter",
"icon": "app.png",
"version":"0.01",
"description": "Simple G-Meter",
"tags": "",
"storage": [
{"name":"gmeter.app.js","url":"app.js"},
{"name":"gmeter.img","url":"app-icon.js","evaluate":true}
]
}
] ]

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

@ -0,0 +1 @@
require("heatshrink").decompress(atob("mEwxH+AH4A/AH4ATlgAGFlgylEYdWq+BwOs1gDBq8yGL4eCmQqB64AIGgIyDFzQtBFhIAFGIZcYqxbKMZFWMSoVCLiBiGGCguM2YACGBgub1uJsoAExOtGDK7CFo4sFAAhjIYYQvOmTqGLYetE4mzM4L0JmQvNRpAuCQpAnDqx2GSJxeBFxDnKFwSmIMBheHXYQuPUwxgNBYIWFRh4uECQusF5iOFLwQuRUQIwFSBQ6Bq69GLw+swNdwKMGIgOJCQlXMBK+HXpAbCAAS7F2Z0GYBQJBwQZLVYeBDwREFIo4vMJIi+IDQIqCAgNdF5jwKF4xfBVIovHL5ovMDQztHR4pEER6ovGdwzvFq4TGd6YbFxNl1phHL4JdGaoSlFIYQvHGAMyJQxgHABReBIgsyFxLwHACZeBRwruKYBeJMJy9CLwq+KSBLBCF5ouCXoqOMMBYCERhQuGLxpgDYI5iBQApdM1heNMAdWEg7CJBQI6HqxeOSJQATrouQGDi8PF4wwXLoQvSGAdWeg4AK1i7CFyYxEmRiQwMyFq5iFGIJjK1gtDFzIxFGQNXwI0BFQOBq4sDFrgxHABItfGRgskAH4A/AFwA="))

6
apps/gmeter/app.js Normal file
View File

@ -0,0 +1,6 @@
g.clear();
g.setFont("6x8",5);g.setFontAlign(-1,0);
Bangle.on('accel',function(accelData) {
g.drawString(" "+accelData.mag.toFixed(1)+" ",75,105,true);
g.drawString('G\'s',75,180,true);
});

BIN
apps/gmeter/app.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB