mb4ps_Lesson6 - microbit for primary schools

Session 6
Pressing the pins
Written by Neil Rickus. Licensed under CC BY-NC-SA 4.0
 Complete a circuit using the pins
 Create random numbers
 Use selection (if, then, else)
 We can create a circuit by touching 0 (P0 in the Block Editor)
and ground (GND)
 Try making something happen when pin P0 is pressed
 You might display a string or random numbers
 We can use random numbers to display different messages to
the screen by combining them with selection (if, then, else)
 This program will make
a friendship detector
 Make a message scroll before your friend tester results are
displayed
 Make pin 2 test for something else (e.g. how hungry you are; what
video game you should play; where you should go next on holiday)