10#ifndef SENSORSLedsSensors_DEFINED
11#define SENSORSLedsSensors_DEFINED
134#ifdef WHITEBOARD_POSTER_STRING_CONVERSION
258 switch (target_group)
Class for changing the LEDs on a robot, designed for Nao but is fairly generic.
void changeLed(LEDs::LEDCode led, u_int8_t level)
Set the intensity value for an individual LED.
void changeLedColour(LEDs::LEDCode led[3], LEDColour colour)
Colour mixer for RGB LEDs.
void changeLed(LEDs::LEDCode led, bool state)
Turn on or off an individual LED.
SENSORSLedsSensors()
Constructor, sets all LED values to off.
void LEDsGroupChange(LEDGroups target_group, LEDColour target_colour_or_numOfEars)
Allows changes to be made to a group of LEDs.
@ Ears
Number of leds to turn on is the value.
@ REar
Number of leds to turn on is the value
@ Eyes
All others have the desired colour as the passed value to LEDsGroupChange.
@ LEar
Number of leds to turn on is the value.
@ AllLEDs
Only off is supported regardless of what is passed in.
LEDColour
Predefined colour values, feel free to add more, just implement them in changeLedColour.
@ NUMBER_OF_LEDS_COLOURS
number of LEDColours