Download presentation
Presentation is loading. Please wait.
1
micro:bit for primary schools – mb4ps.co.uk
Session 6 Pressing the pins Written by Neil Rickus. Licensed under CC BY-NC-SA 4.0
2
Objectives Complete a circuit using the pins Create random numbers
Use selection (if, then, else)
3
Completing a circuit 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
4
Including 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
5
Challenges 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)
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.