Merge pull request #1 from keyboardio/f/led-api-update

Updated to use the new LEDMode/LEDControl API
pull/389/head
Gergely Nagy 7 years ago committed by GitHub
commit bf60ae58e5

@ -26,8 +26,7 @@ TriColor::TriColor(cRGB base_color, cRGB mod_color, cRGB esc_color) {
esc_color_ = esc_color;
}
void
TriColor::update(void) {
void TriColor::update(void) {
for (uint8_t r = 0; r < ROWS; r++) {
for (uint8_t c = 0; c < COLS; c++) {
Key k = Layer.lookup(r, c);

@ -27,6 +27,7 @@ class TriColor : public LEDMode {
TriColor(cRGB base_color, cRGB mod_color, cRGB esc_color);
TriColor(cRGB base_color, cRGB mod_color) : TriColor(base_color, mod_color, mod_color) {}
protected:
void update(void) final;
private:

Loading…
Cancel
Save