Login

Please fill in your details to login.





micro:bit - button presses

This page is mainly about micro:bit - button presses
Where we learn how to use the hardware buttons and the LED display.

The micro:bit as two hardware buttons on the front - button A and button B. You can program the micro:bit to do different things when the buttons are pressed.

BL / JS / PY : On the press of Button A, show a picture of a smiley face on the LED display. Use one of the built in icons or create your own if you want.
BL / JS / PY : Now extend your script to show a sad face when you press Button B.
BL / JS / PY : Finally, display a confused face when you press button A and button B together.

(microbit-button-a-happy)
(microbit-button-a-happy-b-sad)
(microbit-button-a-happy-b-sad-both-confused)
Last modified: October 5th, 2021
The Computing Café works best in landscape mode.
Rotate your device.
Dismiss Warning