Signed-off-by: Gergely Nagy <kaleidoscope@gergo.csillger.hu>pull/365/head
parent
5903621699
commit
75edd6425e
@ -1,12 +1,17 @@
|
||||
#include "Kaleidoscope-LEDEffect-SolidColor.h"
|
||||
|
||||
namespace kaleidoscope {
|
||||
LEDSolidColor::LEDSolidColor(uint8_t r, uint8_t g, uint8_t b) {
|
||||
this->r = r;
|
||||
this->g = g;
|
||||
this->b = b;
|
||||
}
|
||||
|
||||
void
|
||||
LEDSolidColor::init(void) {
|
||||
LEDControl.set_all_leds_to(r, g, b);
|
||||
void LEDSolidColor::onActivate(void) {
|
||||
::LEDControl.set_all_leds_to(r, g, b);
|
||||
}
|
||||
|
||||
void LEDSolidColor::refreshAt(byte row, byte col) {
|
||||
::LEDControl.setCrgbAt(row, col, CRGB(r, g, b));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in new issue