# Help- How do you make it so that the buttons & pins on micro:bit don't clash?!?!

**URL:** https://forum.makecode.com/t/help-how-do-you-make-it-so-that-the-buttons-pins-on-micro-bit-dont-clash/29678
**Category:** micro:bit
**Tags:** game
**Created:** [July 13, 2024, 4:42pm UTC](https://forum.makecode.com/t/help-how-do-you-make-it-so-that-the-buttons-pins-on-micro-bit-dont-clash/29678 "2024-07-13T16:42:19Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Freedom55](https://avatars.discourse-cdn.com/v4/letter/f/a9adbd/32.png) [@Freedom55](https://forum.makecode.com/u/Freedom55)
#### Post date: [July 13, 2024, 4:42pm UTC](https://forum.makecode.com/t/help-how-do-you-make-it-so-that-the-buttons-pins-on-micro-bit-dont-clash/29678/1 "2024-07-13T16:42:19Z")

</div>

So basically as the title says, I want to ask how to make it so that the buttons and pins do not clash on a micro:bit? For some context, I’m making a very simple memory game that uses the A & B buttons for input and using the pins to change difficulty. However, when people use the micro:bit, they tend to change the difficulty during a round due to accidently pressing the pins. I want to stop this from happening, so is there any way?

Here’s the project link if you want to take a look: [https://makecode.microbit.org/\_9HqVYqL4V8T5](https://makecode.microbit.org/_9HqVYqL4V8T5)

---

<div class="post-metadata">

### Author: ![Freedom55](https://avatars.discourse-cdn.com/v4/letter/f/a9adbd/32.png) [@Freedom55](https://forum.makecode.com/u/Freedom55)
#### Post date: [July 17, 2024, 5:11am UTC](https://forum.makecode.com/t/help-how-do-you-make-it-so-that-the-buttons-pins-on-micro-bit-dont-clash/29678/2 "2024-07-17T05:11:04Z")

</div>

Help pls

---

<div class="post-metadata">

### Author: ![IEatRats](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/ieatrats/32/17695_2.png) [@IEatRats](https://forum.makecode.com/u/IEatRats)
#### Post date: [October 21, 2024, 2:21am UTC](https://forum.makecode.com/t/help-how-do-you-make-it-so-that-the-buttons-pins-on-micro-bit-dont-clash/29678/3 "2024-10-21T02:21:41Z")

</div>

Try  
input.onGesture(Gesture.Shake, function () {

})  
(javascript)  
or swap pin press for a On Logo [Pressed]
