micro:bit Timers
Ported from Timers for MakeCode Arcade
Open this page at https://robo-technical-group.github.io/pxt-microbit-timers/
Usage
This extension adds helper functions for debouncing, throttling, delaying and running code in the background.
“After X do” / aka setTimeout
“Separately do” / aka run in background thread
“after Y settled for X do” / aka debounce
“for Y at most once every X do” / aka throttle
Use as Extension
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/robo-technical-group/pxt-microbit-timers and import
Edit this project
To edit this repository in MakeCode.
- open https://makecode.microbit.org/
- click on Import then click on Import URL
- paste https://github.com/robo-technical-group/pxt-microbit-timers and click import
Blocks preview
This image shows the blocks code from the last commit in master. This image may take a few minutes to refresh.
Metadata (used for search, rendering)
- for PXT/microbit