-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add app 'Fast Reset' (boot code) use the more descriptive `Bangle.showClock` instead of `load(".bootcde")` fix scope of buzzTimeout id variable compact the code a little bit change metadata and readme to reflect a shortened timeout
- Loading branch information
thyttan
committed
Jun 28, 2023
1 parent
2cd1caa
commit 1c81d2d
Showing
5 changed files
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
0.01: New App! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Fast Reset | ||
|
||
Reset the watch by holding the hardware button for half a second. If 'Fastload Utils' is installed this will typically be done with fastloading. A buzz acts as indicator. | ||
|
||
Fast Reset was developed with the app history feature of 'Fastload Utils' in mind. If many apps are in the history stack, the user may want a fast way to exit directly to the clock face without using the firmwares reset function. | ||
|
||
## Usage | ||
|
||
Just install and it will run as boot code. | ||
|
||
## Features | ||
|
||
If 'Fastload Utils' is installed fastloading will be used when possible. Otherwise a standard `load(.bootcde)` is used. | ||
|
||
If the hardware button is held for longer the standard reset functionality of the firmware is executed as well (total 1.5 seconds). And eventually the watchdog will be kicked. | ||
|
||
## Controls | ||
|
||
Hold the hardware button for half a second to feel the buzz, loading the clock face. | ||
|
||
## Requests | ||
|
||
Mention @[thyttan](https://github.com/thyttan) in an issue to the official [BangleApps repository](https://github.com/espruino/BangleApps/issues) for feature requests and bug reports. | ||
|
||
## Acknowledgements | ||
|
||
<a target="_blank" href="https://icons8.com/icon/15165/rewind">Rewind</a> icon by <a target="_blank" href="https://icons8.com">Icons8</a> | ||
|
||
## Creator | ||
|
||
[thyttan](https://github.com/thyttan) | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{let buzzTimeout; | ||
setWatch((e)=>{ | ||
if (e.state) buzzTimeout = setTimeout(()=>{Bangle.buzz(80,0.40);Bangle.showClock();}, 500); | ||
if (!e.state && buzzTimeout) clearTimeout(buzzTimeout);}, | ||
BTN,{repeat:true, edge:'both' });} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ "id": "fastreset", | ||
"name": "Fast Reset", | ||
"shortName":"Fast Reset", | ||
"version":"0.01", | ||
"description": "Reset the watch by holding the hardware button for half a second. If 'Fastload Utils' is installed this will typically be done with fastloading. A buzz acts as indicator.", | ||
"icon": "app.png", | ||
"type": "bootloader", | ||
"tags": "system", | ||
"supports" : ["BANGLEJS2"], | ||
"readme": "README.md", | ||
"storage": [ | ||
{"name":"fastreset.boot.js","url":"boot.js"} | ||
] | ||
} |