April 2020
Intermediate to advanced
224 pages
6h 2m
English
Vampire zombies only come out when it’s dark. Let’s create a light sensor that tells us when it’s dark so that we know when to be on alert.
![]()
For the micro:bit, the alarm will be some text across the LEDs. For the Circuit Playground Express, we’ll flash the lights.
SELECTION
In coding, we call the if statement in the above algorithm Selection. If statements are a big part of coding. We use them to check on things. I like to use the example:
![]()
In an if statement, you’re checking ...