Open this page at https://hp-e.github.io/play-timer/
Clicking the button A will increase number of minutes with eiter 5 or 1 minutes, depended on minute_step setting. Press and hold button A to toggle between 5 and 1 minutes for the minute_step setting.
Start the timer by pressing the B- button. Pressing the B- button again will pause the timer, press again and it starts again. Press and hold the B- button to stop the timer and go back to start. This will not play the endTimer function.
Click AB at the same time to forcefully end the timer and notify that the end is near. Press and hold the AB- button to toggle sound on/of
This repository can be added as an extension in MakeCode.
- open https://makecode.microbit.org/
- click on New Project
- click on Extensions under the gearwheel menu
- search for https://github.com/hp-e/play-timer and import
To edit this repository in MakeCode.
- open https://makecode.microbit.org/
- click on Import then click on Import URL
- paste https://github.com/hp-e/play-timer and click import
This image shows the blocks code from the last commit in master. This image may take a few minutes to refresh.
- for PXT/microbit