Name jobs as functions, send messages by radio and measure time, ending in a reaction game and a two-player radio duel.
★ Challenge completeFunctions: name some blocks once and call them anywhere.
Name some blocks once as a function, then call it by name wherever you need it.
Radio messages between micro:bits, and codes both sides agree.
Send a number by radio, and react on another micro:bit when it arrives.
Use the number that arrives by radio to do something different for each message, and send words as well as numbers.
Send a place number that stands for a word in a list both micro:bits share.
Measure how long something took, and remember what is happening with true or false.
Store the running time at one moment and take it away from a later one, to measure how long something took.
Use a variable that holds true or false to remember what is happening now, so each event can check it.
Build a reaction game from scratch, then race a friend over radio. Two optional lessons go further.
Build a reaction game from scratch, using everything so far. Wait for the heart, press A as fast as you can, and beat your best.
Turn the reaction timer into a two-player race over radio. First to press after the heart wins.
Make the reaction game harder. Decoys you must not press, a list of target times that get tighter each level, and three lives.
Take the Radio duel further. A scoreboard kept in a list, rounds that start themselves, and a champion at three wins.
Progress is saved in this browser only. Nothing is sent anywhere.
For teachers: Teacher guide (notes, answers, solutions, slides and worksheets)