30 for (
int index = 0; index<2; index++){
34 for (
int index = 0; index<
ledAmount; index++){
58 for(uint16_t index = 0; index < amount;index++){
75 for (
int index = 0; index<2; index++){
79 for (
int index = 0; index<3; index++){
93uint32_t MultiColorLight::normalizeColor(uint32_t
color,uint8_t maxBrightness){
94 uint8_t red = (
color&0x00FF0000)>>16;
95 uint8_t green = (
color&0x0000FF00)>>8;
96 uint8_t blue = (
color&0x000000FF);
This component controls the ability to show multicolored light, using the RGB-LEDs.
leds
Describes combinations of leds on the Dezibot. With the Robot in Front of you, when the robot drives ...
void turnOffLed(leds leds=ALL)
turn off the given leds
void blink(uint16_t amount, uint32_t color=0x00006400, leds leds=TOP, uint32_t interval=1000)
Let LEDs blink, returns after all blinks were executed.
static const uint16_t ledAmount
void setLed(uint8_t index, uint32_t color)
Set the specified led to the passed color.
void begin(void)
initialize the multicolor component
uint32_t color(uint8_t r, uint8_t g, uint8_t b)
wrapper to calulate the used colorformat from a rgb-value
static const uint8_t maxBrightness
Adafruit_NeoPixel rgbLeds
void setTopLeds(uint32_t color)
sets the two leds on the top of the robot to the specified color