~sungo/qmk_userspace

a3e60bb6cd075dc21b872504144d0b6d533b1556 — sungo 1 year, 2 months ago 05cdf97
better led support for foldkb
3 files changed, 11 insertions(+), 3 deletions(-)

A boards/foldkb.c
M config/foldkb.h
M rules.mk
A boards/foldkb.c => boards/foldkb.c +10 -0
@@ 0,0 1,10 @@
#include QMK_KEYBOARD_H

#ifdef RGBLIGHT_ENABLE

void keyboard_post_init_user(void) {
	rgblight_enable();
	rgblight_sethsv(DIM_HSV_AZURE);
}

#endif

M config/foldkb.h => config/foldkb.h +0 -3
@@ 4,9 4,6 @@
#undef RGBLIGHT_DEFAULT_MODE
#define RGBLIGHT_DEFAULT_MODE RGBLIGHT_MODE_STATIC_LIGHT

#define RGBLIGHT_DEFAULT_HUE 132
#define RGBLIGHT_DEFAULT_SAT 102
#define RGBLIGHT_DEFAULT_VAL 150
#endif



M rules.mk => rules.mk +1 -0
@@ 49,6 49,7 @@ endif

ifeq ($(KEYBOARD), keebio/foldkb/rev1)
	RGBLIGHT_ENABLE = yes
	SRC += boards/foldkb.c
endif

ifeq ($(KEYBOARD), keebio/quefrency/rev4)