BBC Microbit
Objective of the lesson Use Block Editor to make Buttons work All of you will: Display an image when you press a button Most of you will: Display a different image if you press a different button or face the Microbit up or down Some of you will: Display a different image if you press pins P0, P1, P2
Using a button to play your animation Replace the forever loop with an on Button A pressed loop Your image should then play when you press the A button Add another program alongside that shows an image if button B is pressed
Challenge Add another program that shows a different image if you shake the Microbit Add another program that shows a different image if you face the logo up or down on the Microbit Add another program that shows a different image if you face the screen up or down on the Microbit Add another program that shows a different image if you touch pin PO Add another program that shows a different image if you touch pin P1 Add another program that shows a different image if you touch pin P2
Answers