- apps/chargent: added minified code

master
notEvil 2023-01-16 16:23:55 +01:00
parent 29d588e17d
commit 0e4ff06396
2 changed files with 3 additions and 2 deletions

1
apps/chargent/boot.min.js vendored Normal file
View File

@ -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)})})()

View File

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