1
0
Fork 0

Add RGB_SET keycode to Melody96 and RGB files to userspace

This commit is contained in:
Konstantin Đorđević 2019-02-11 22:41:51 +01:00
parent d163b22dfb
commit 2f07627a5d
5 changed files with 45 additions and 4 deletions

View file

@ -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
View 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
View 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;

View file

@ -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