Wait Until blocks


I just wanted to share a little extention I made
Here’s the link: https://github.com/CuteMrMerp/button_held

This extention adds a block called check if [button] is held for [ms]
Put it in an if block and it will check if the button is held

I thought I would make it because microbit needs a button held event (especially because there are only 2 buttons)

What do you think? [poll type=multiple results=always min=1 max=2 chartType=bar]
  • :frowning:
  • :expressionless:
  • :slight_smile:
[/] [poll ]
1 Like

Nice work!

For what it’s worth, in the last few days I made a similar extension for similar problems. It detects single clicks, double clicks, and long presses: https://github.com/bsiever/microbit-pxt-clicks .

Here’s an example project for testing: https://makecode.microbit.org/_F8g00a5rPbMh


1 Like

Nice :+1: