1
0
Fork 0

[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:
elmo-space 2020-06-10 23:33:26 +02:00 committed by GitHub
parent 263536586d
commit 7e8dc2e570
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 206 additions and 0 deletions

View 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);
}