Tags
Date
Class
Explore: Coding & Computer Science
Author
Class Section
Documentation Type
Let’s explore what a “Loop” does. When we build a loop, we create a set of instructions that run from top to bittom and repeat…seemingly infinitely or until you get bored.
** need a full loop of downloading code hear**
Loops work on sets of input and output. when we use the LEDs we are using the output, but we can explore the buttons as an input and link that input to output.
- Touch, sound
- All of the different inputs on the microbit, output is more simple
- What is a micro-bit? Micro-controller : computer without a keyboard or a screen and only runs one program at a time
- Roughly equivalent to what took men to the moon (lower)—-Actually Microbit is 4 times
Is there some way to illustrate this?
- Load code:
- Can download onto machine
- Yellow flashing light means that it is ready to upload code onto microbit ** need a video of flashing light** (goes with the code download in order)
- Press → makes heart
dace3fbd20bf472c8060237f1c955a90
- On Shake - clear screen
- Leads into Rock, Paper, Scissors
- Change heart to more of a rock shape
- Clone – find something that looks like paper
- Clone again - find something that looks like scissors
- Renames code RPS_1
- Download and upload
- If time, have students add sound to RPS options
- If much more time
- Add forever - it is a loop, runs the code from top to bottom and starts all over again
- Adding the purple math
- Play with the temperature output to show that as an input
- Combined temperature and sound
- Connect any input to any output
ClosingExtra Stuff
- Byte - 8 transistors (electric switches) explanation
- Pulse train
- Looking at ASCII