Color Sensor
adapted from PyBricks
In almost all programming, American spellings are used. So as programmers we use colors, even though we would normally spell the word colours.
A sensor lets an EV3 program measure and collect data about is surroundings. The Color Sensor can detect color and reflected light.
Three modes: Color, Reflected Light intensity and Ambient Light intensity.
ā Color Mode: Recognizes 7 colors (black, brown, blue, green, yellow, red, white) and No Color
ā Reflected Light: Measures the intensity of the light reflected back from a lamp that emits a red light. (0=very dark and 100=very light)
ā Ambient Light: Measures the strength of the light that enters the sensor from the environment. (0=very dark and 100=very light)
|
|
Here we initialize what sensors we would like by telling the EV3 what port it is plugged into and what we would like to call it when referring to it in our code.
|
|