At the end of this lesson, you will be able to:
understand and use an if ... Else statement, with hardware
review "Boolean Expression" and "If ... Then"
review distance sensor and neopixels
nil
nil
click on provided link to create a new GitHub repo
call the repo: TEJ2O.1 ⇢ Unit2-12
create a program that:
on pressing "A", uses the distance sensor and save the current distance in cm to a variable
then use that variable to:
turn all the neopixels to red, if the distance is < 10 cm
and also turn the neopixels to green, if the distance is >= 10 cm
you MUST use an if ... else statement
do the above assignment but in Python