Merge pull request #3 from keyboardio/f/led-api-update
Updated to use the new LEDMode/LEDControl APIpull/365/head
commit
b9e2d3a27d
@ -1,12 +1,17 @@
|
|||||||
#include "Kaleidoscope-LEDEffect-SolidColor.h"
|
#include "Kaleidoscope-LEDEffect-SolidColor.h"
|
||||||
|
|
||||||
|
namespace kaleidoscope {
|
||||||
LEDSolidColor::LEDSolidColor(uint8_t r, uint8_t g, uint8_t b) {
|
LEDSolidColor::LEDSolidColor(uint8_t r, uint8_t g, uint8_t b) {
|
||||||
this->r = r;
|
this->r = r;
|
||||||
this->g = g;
|
this->g = g;
|
||||||
this->b = b;
|
this->b = b;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void LEDSolidColor::onActivate(void) {
|
||||||
LEDSolidColor::init(void) {
|
::LEDControl.set_all_leds_to(r, g, b);
|
||||||
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