mirror of
https://gitlab.dit.htwk-leipzig.de/phillip.kuehne/dezibot.git
synced 2025-05-22 04:21:49 +02:00
fix: dev: bug int turnOff(ALL) fixed
This commit is contained in:
parent
1b330e1520
commit
4546330c15
@ -12,5 +12,7 @@ dezibot.multiColorLight.setLed(TOP_LEFT,0x000000FF);
|
|||||||
dezibot.multiColorLight.setLed(TOP_RIGHT,dezibot.multiColorLight.color(0,100,0));
|
dezibot.multiColorLight.setLed(TOP_RIGHT,dezibot.multiColorLight.color(0,100,0));
|
||||||
dezibot.multiColorLight.blink(10,0x00FF0000,BOTTOM,500);
|
dezibot.multiColorLight.blink(10,0x00FF0000,BOTTOM,500);
|
||||||
|
|
||||||
|
delay(1000);
|
||||||
|
dezibot.multiColorLight.turnOff(ALL);
|
||||||
delay(1000);
|
delay(1000);
|
||||||
}
|
}
|
||||||
|
@ -68,7 +68,9 @@ void MultiColorLight::turnOff(leds leds){
|
|||||||
MultiColorLight::setLed(index,0);
|
MultiColorLight::setLed(index,0);
|
||||||
}break;
|
}break;
|
||||||
case ALL:
|
case ALL:
|
||||||
rgbLeds.clear();break;
|
for (int index = 0; index<3; index++){
|
||||||
|
MultiColorLight::setLed(index,0);
|
||||||
|
}break;
|
||||||
default:
|
default:
|
||||||
//TODO logging
|
//TODO logging
|
||||||
break;
|
break;
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* @file MultiColorLight.h
|
* @file MultiColorLight.h
|
||||||
* @author Saskia Duebener, Hans Haupt
|
* @author Saskia Duebener, Hans Haupt
|
||||||
* @brief This component controls the ability to show multicolored light, using the RGB-LEDs
|
* @brief This component controls the ability to show multicolored light, using the RGB-LEDs
|
||||||
* @version 0.1
|
* @version 0.2
|
||||||
* @date 2023-11-25
|
* @date 2023-11-25
|
||||||
*
|
*
|
||||||
* @copyright Copyright (c) 2023
|
* @copyright Copyright (c) 2023
|
||||||
|
Loading…
x
Reference in New Issue
Block a user