- apps/chargent: added minified code
parent
29d588e17d
commit
0e4ff06396
|
|
@ -0,0 +1 @@
|
|||
(function(){var a;Bangle.on("charging",function(e){if(e){if(!a){var c=0,b=0;a=setInterval(function(){var d=analogRead(D30);c<d?(c=d,b=0):(b++,10<=b&&(Bangle.buzz(500),setTimeout(function(){return Bangle.buzz(500)},1E3)))},3E4)}}else a&&(clearInterval(a),a=void 0)})})()
|
||||
|
|
@ -1,13 +1,13 @@
|
|||
{ "id": "chargent",
|
||||
"name": "Charge Gently",
|
||||
"version": "0.01",
|
||||
"description": "Reduces battery wear by buzzing when the first charge stage ended.",
|
||||
"description": "When charging, reminds you to disconnect the watch to prolong battery life.",
|
||||
"icon": "icon.png",
|
||||
"type": "bootloader",
|
||||
"tags": "battery",
|
||||
"supports": ["BANGLEJS"],
|
||||
"readme": "README.md",
|
||||
"storage": [
|
||||
{"name": "chargent.boot.js", "url": "boot.js"}
|
||||
{"name": "chargent.boot.js", "url": "boot.min.js"}
|
||||
]
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue