# Wait Until blocks

**URL:** <https://forum.makecode.com/t/wait-until-blocks/14847>\
**Category:** micro:bit extensions\
**Created:** [August 9, 2022, 4:20pm UTC](https://forum.makecode.com/t/wait-until-blocks/14847 "2022-08-09T16:20:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![CuteMrMerp](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/cutemrmerp/32/6671_2.png) [@CuteMrMerp](https://forum.makecode.com/u/CuteMrMerp)\
**Post date:** [August 9, 2022, 4:20pm UTC](https://forum.makecode.com/t/wait-until-blocks/14847/1 "2022-08-09T16:20:44Z")

</div>

Hello

I just wanted to share a little extention I made  
Here’s the link: [https://github.com/CuteMrMerp/button\_held](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]
> 
> - ☹
> - 😑
> - 🙂
> 
> [/] [poll]

---

<div class="post-metadata">

**Author:** ![bsiever](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/bsiever/32/1032_2.png) [@bsiever](https://forum.makecode.com/u/bsiever)\
**Post date:** [August 9, 2022, 10:09pm UTC](https://forum.makecode.com/t/wait-until-blocks/14847/2 "2022-08-09T22:09:42Z")

</div>

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](https://github.com/bsiever/microbit-pxt-clicks) .

Here’s an example project for testing: [https://makecode.microbit.org/\_F8g00a5rPbMh](https://makecode.microbit.org/_F8g00a5rPbMh)

Bill

---

<div class="post-metadata">

**Author:** ![CuteMrMerp](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/cutemrmerp/32/6671_2.png) [@CuteMrMerp](https://forum.makecode.com/u/CuteMrMerp)\
**Post date:** [August 9, 2022, 11:31pm UTC](https://forum.makecode.com/t/wait-until-blocks/14847/3 "2022-08-09T23:31:27Z")

</div>

Nice 👍
