At the end of this lesson, you will be able to:
use an if statement, with Neopixels
if statements
if statement flowcharts
light sensor on Micro:Bit
nil
nil
click on provided link to create a new GitHub repo
call the repo: TEJ2O.1 ⇢ Unit2-10
create a program that reads in the amount of light
if it is <= 51 light up 0 Neopixels
if it is > 52 light up 1 Neopixels
if it is >104 light up 2 Neopixels
if it is > 156 light up 3 Neopixels
if it is >208 light up 4 Neopixels
you CAN ONLY use if statements, no other decision structures!
do the above assignment but in Python