fix: dev: bug int turnOff(ALL) fixed

This commit is contained in:
hhau 2023-11-26 11:34:24 +01:00
parent 1b330e1520
commit 4546330c15
3 changed files with 6 additions and 2 deletions

View File

@ -12,5 +12,7 @@ dezibot.multiColorLight.setLed(TOP_LEFT,0x000000FF);
dezibot.multiColorLight.setLed(TOP_RIGHT,dezibot.multiColorLight.color(0,100,0));
dezibot.multiColorLight.blink(10,0x00FF0000,BOTTOM,500);
delay(1000);
dezibot.multiColorLight.turnOff(ALL);
delay(1000);
}

View File

@ -68,7 +68,9 @@ void MultiColorLight::turnOff(leds leds){
MultiColorLight::setLed(index,0);
}break;
case ALL:
rgbLeds.clear();break;
for (int index = 0; index<3; index++){
MultiColorLight::setLed(index,0);
}break;
default:
//TODO logging
break;

View File

@ -2,7 +2,7 @@
* @file MultiColorLight.h
* @author Saskia Duebener, Hans Haupt
* @brief This component controls the ability to show multicolored light, using the RGB-LEDs
* @version 0.1
* @version 0.2
* @date 2023-11-25
*
* @copyright Copyright (c) 2023