Professional Documents
Culture Documents
Qrio Level 1: Black / White Sensor
Qrio Level 1: Black / White Sensor
Arithmetic Logical
Operators Relational Operators
Operators
or and not
Example of logic
operations
or
not
and
Exercise 2!
Let’s work on 2 sensors and 2 LEDs at the same time!
1. If both sensors read white, the two LEDs turn On
2. If one of the sensors reads white, only the green LED
turns on!
3. If both sensors aren’t reading, only the red LED turns
on!
For each of the three cases, we want to see the result on
the SERIAL MONITOR!
Remember to use the logic operators right!
Code:
☺
SEE YOU NEXT WEEK