summaryrefslogtreecommitdiffstats
path: root/quantum/rgblight.c
diff options
context:
space:
mode:
Diffstat (limited to 'quantum/rgblight.c')
-rw-r--r--quantum/rgblight.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/quantum/rgblight.c b/quantum/rgblight.c
index 63eda47cda..ab218b8c50 100644
--- a/quantum/rgblight.c
+++ b/quantum/rgblight.c
@@ -370,6 +370,18 @@ void rgblight_sethsv(uint16_t hue, uint8_t sat, uint8_t val) {
}
}
+uint16_t rgblight_get_hue(void) {
+ return rgblight_config.hue;
+}
+
+uint8_t rgblight_get_sat(void) {
+ return rgblight_config.sat;
+}
+
+uint8_t rgblight_get_val(void) {
+ return rgblight_config.val;
+}
+
void rgblight_setrgb(uint8_t r, uint8_t g, uint8_t b) {
if (!rgblight_config.enable) { return; }