senseColor()
- Description
-
Basic RGB color sensing with the light sensor and nearby neopixel.
Both functions do the same thing and just differ in how they return the
result, either as explicit RGB bytes or a 24-bit RGB color value.
- Syntax
-
senseColor();
senseColor(red, green, blue);
- Parameters
-
red
[uint8_t]: 8-bit red value
green
[uint8_t]: 8-bit green value
blue
[uint8_t]: 8-bit blue value
- Returns
-
[uint32_t]: A 24-bit RGB color value if called without parameters,
otherwise nothing (values are returned through parameters).