summaryrefslogtreecommitdiff
path: root/keyboards/xd002/keymaps/multilayer_rgb/rgblite.h
diff options
context:
space:
mode:
authorelmo-space <lorwel@mailbox.org>2020-06-10 23:33:26 +0200
committerGitHub <noreply@github.com>2020-06-10 14:33:26 -0700
commit7e8dc2e570e21a018b3cfdf860ef03dd8d2a20f3 (patch)
tree5a1776535dcd4441b5ba2f21302acb7332255535 /keyboards/xd002/keymaps/multilayer_rgb/rgblite.h
parent263536586daebcf09d31ab78a623da9366ebf7f7 (diff)
downloadqmk_firmware-7e8dc2e570e21a018b3cfdf860ef03dd8d2a20f3.tar.gz
qmk_firmware-7e8dc2e570e21a018b3cfdf860ef03dd8d2a20f3.zip
[Keymap] Add dual layer keymap for xd002 macropad (#9222)
Co-authored-by: Joel Challis <git@zvecr.com> Co-authored-by: Drashna Jaelre <drashna@live.com>
Diffstat (limited to 'keyboards/xd002/keymaps/multilayer_rgb/rgblite.h')
-rw-r--r--keyboards/xd002/keymaps/multilayer_rgb/rgblite.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/keyboards/xd002/keymaps/multilayer_rgb/rgblite.h b/keyboards/xd002/keymaps/multilayer_rgb/rgblite.h
new file mode 100644
index 0000000000..ddc61d5f43
--- /dev/null
+++ b/keyboards/xd002/keymaps/multilayer_rgb/rgblite.h
@@ -0,0 +1,9 @@
+#pragma once
+
+#include "ws2812.h"
+#include "rgblight_list.h"
+
+static inline void rgblight_setrgb(uint8_t _r, uint8_t _g, uint8_t _b) {
+ LED_TYPE leds[RGBLED_NUM] = {{.r = _r, .g = _g, .b = _b}, {.r = _r, .g = _g, .b = _b}};
+ ws2812_setleds(leds, RGBLED_NUM);
+}