Kaleidoscope
TriColor.h
Go to the documentation of this file.
1 /* -*- mode: c++ -*-
2  * Kaleidoscope-LEDEffects -- An assorted collection of LED effects for Kaleidoscope
3  * Copyright (C) 2016, 2017 Gergely Nagy
4  *
5  * This program is free software: you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation, either version 3 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program. If not, see <http://www.gnu.org/licenses/>.
17  */
18 
19 #pragma once
20 
21 #include <Kaleidoscope.h>
23 
24 namespace kaleidoscope {
25 class TriColor : public LEDMode {
26  public:
27  TriColor(cRGB base_color, cRGB mod_color, cRGB esc_color);
28  TriColor(cRGB base_color, cRGB mod_color) : TriColor(base_color, mod_color, mod_color) {}
29 
30  void update(void) final;
31 
32  private:
33  cRGB base_color_;
34  cRGB mod_color_;
35  cRGB esc_color_;
36 };
37 }
Definition: hid.cpp:4
Definition: TriColor.h:25
Definition: Kaleidoscope-LEDControl.h:11
TriColor(cRGB base_color, cRGB mod_color, cRGB esc_color)
Definition: TriColor.cpp:23
Definition: Kaleidoscope-Hardware-Shortcut.h:29
TriColor(cRGB base_color, cRGB mod_color)
Definition: TriColor.h:28
void update(void) final
Definition: TriColor.cpp:30