# reading Microsoft microbit arcade buttons in mu python

**URL:** <https://forum.makecode.com/t/reading-microsoft-microbit-arcade-buttons-in-mu-python/38551>\
**Category:** micro:bit\
**Created:** [August 8, 2025, 2:46am UTC](https://forum.makecode.com/t/reading-microsoft-microbit-arcade-buttons-in-mu-python/38551 "2025-08-08T02:46:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bri-Cypher](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/bri-cypher/32/23893_2.png) [@Bri-Cypher](https://forum.makecode.com/u/Bri-Cypher)\
**Post date:** [August 8, 2025, 2:46am UTC](https://forum.makecode.com/t/reading-microsoft-microbit-arcade-buttons-in-mu-python/38551/1 "2025-08-08T02:46:09Z")

</div>

Hi, I’m trying to get a arcade button to connect with mu python version 1.2.0 but i can get it to work

Here is the code so far:

from microbit import \*

while True:  
if pin0.read\_digital():  
display.show(Image.HAPPY)  
else:  
display.show(Image.SAD)

The code wont run and I don’t know how to fix it. Any ideas

(FYI: I’m using Mu instead of micro bit arcade because the imbedded if statements i need for the future don’t work)
