[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>
This commit is contained in:
parent
263536586d
commit
7e8dc2e570
4 changed files with 206 additions and 0 deletions
9
keyboards/xd002/keymaps/multilayer_rgb/rgblite.h
Normal file
9
keyboards/xd002/keymaps/multilayer_rgb/rgblite.h
Normal file
|
@ -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);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue