micro:bit - button presses
This page is mainly about micro:bit - button presses
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