Variables
- Micro:bitHow does our program think?
Five small MakeCode programs for the micro:bit (greeting, heart, buttons, dice, score counter): predict, run and change one thing to see how they work.
- Micro:bitLives and conditions
A steady-hand game with the micro:bit: a lives variable, if / else, a wire as a switch on a pin, start and finish on the touch logo, and a stopwatch.
- InfoBinary, octal and hexadecimal numbers
How a computer counts with zeros and ones: binary numbers on LEDs, bits, nibbles and bytes, octal and hexadecimal numbers, and writing them in code.
- InfoVariables and data types
Variables on the micro:bit and Arduino: the types int, long, float and char, storage in memory, byte order, type conversion and common mistakes.