aboutsummaryrefslogtreecommitdiffstats
path: root/src/Kaleidoscope-LayerHighlighter.h
diff options
context:
space:
mode:
authorBrian Cully <bjc@kublai.com>2018-08-30 00:17:05 -0400
committerBrian Cully <bjc@kublai.com>2018-08-30 00:17:05 -0400
commit3442e117d41c3d77c980b918beb0c1d8411b272f (patch)
treec8e3ca9afbeed614a853596b374195baf3b60ef3 /src/Kaleidoscope-LayerHighlighter.h
downloadKaleidoscope-LayerHighlighter-3442e117d41c3d77c980b918beb0c1d8411b272f.tar.gz
Kaleidoscope-LayerHighlighter-3442e117d41c3d77c980b918beb0c1d8411b272f.zip
Initial commit.
Diffstat (limited to 'src/Kaleidoscope-LayerHighlighter.h')
-rw-r--r--src/Kaleidoscope-LayerHighlighter.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/Kaleidoscope-LayerHighlighter.h b/src/Kaleidoscope-LayerHighlighter.h
new file mode 100644
index 0000000..65ae483
--- /dev/null
+++ b/src/Kaleidoscope-LayerHighlighter.h
@@ -0,0 +1,18 @@
+#pragma once
+
+#include <Kaleidoscope.h>
+
+class LayerHighlighter : public kaleidoscope::Plugin {
+ public:
+ LayerHighlighter(uint8_t l): color(CRGB(160, 0, 0)), lockHue(170), layer(l) {}
+
+ cRGB color;
+ uint8_t lockHue;
+
+ kaleidoscope::EventHandlerResult onSetup(void);
+ kaleidoscope::EventHandlerResult afterEachCycle();
+
+ private:
+ const uint8_t layer;
+ static byte row, col;
+};