micro:bit for primary schools – mb4ps.co.uk Session 2 – PXT Editor update Buttons and images Written by Neil Rickus. Licensed under CC BY-NC-SA 4.0
Objectives Display images Respond to button presses Respond to movement (shaking)
Button presses We’re now going to use the buttons to make stuff happen Program your micro:bit to display an image when a button is pressed
Challenges Make your micro:bit display a different image when button B is pressed Make your micro:bit display a different image when buttons A and B are pressed Make your micro:bit display a different image when you shake it Try to include instructions from our previous lessons, such as pauses and clearing the screen