Add RGB_SET keycode to Melody96 and RGB files to userspace
This commit is contained in:
parent
d163b22dfb
commit
2f07627a5d
5 changed files with 45 additions and 4 deletions
|
@ -1,6 +1,9 @@
|
|||
#pragma once
|
||||
|
||||
#include "quantum.h"
|
||||
#if defined(RGBLIGHT_ENABLE) || defined(RGBMATRIX_ENABLE)
|
||||
#include "rgb.h"
|
||||
#endif
|
||||
#ifdef TAP_DANCE_ENABLE
|
||||
#include "tap_dance.h"
|
||||
#endif
|
||||
|
|
3
users/konstantin/rgb.c
Normal file
3
users/konstantin/rgb.c
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "rgb.h"
|
||||
|
||||
const hsv_t GODSPEED_BLUE = { .h = 214, .s = 17, .v = 73 };
|
17
users/konstantin/rgb.h
Normal file
17
users/konstantin/rgb.h
Normal file
|
@ -0,0 +1,17 @@
|
|||
#pragma once
|
||||
|
||||
#include "quantum.h"
|
||||
|
||||
typedef struct {
|
||||
uint16_t h;
|
||||
uint8_t s;
|
||||
uint8_t v;
|
||||
} hsv_t;
|
||||
|
||||
typedef struct {
|
||||
uint8_t r;
|
||||
uint8_t g;
|
||||
uint8_t b;
|
||||
} rgb_t;
|
||||
|
||||
extern const hsv_t GODSPEED_BLUE;
|
|
@ -1,4 +1,7 @@
|
|||
SRC += konstantin.c
|
||||
ifneq (,$(filter yes,$(RGBLIGHT_ENABLE) $(RGB_MATRIX_ENABLE))) # if either is yes
|
||||
SRC += rgb.c
|
||||
endif
|
||||
ifeq ($(strip $(TAP_DANCE_ENABLE)), yes)
|
||||
SRC += tap_dance.c
|
||||
endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue