summaryrefslogtreecommitdiffstats
path: root/keyboards/1k/keymaps/media/rgblite.h
diff options
context:
space:
mode:
authorlokher <lokher@gmail.com>2022-09-13 11:24:05 +0800
committerlokher <lokher@gmail.com>2022-09-13 11:24:05 +0800
commit9581289745736ce068a1040f44cec37a2ca8830d (patch)
tree24f644715a5fd6cc4d804d9604fb094307808b1b /keyboards/1k/keymaps/media/rgblite.h
parentfe13cedf8c09fa34d5cec4e4c624738095176625 (diff)
Remove non-Keychron keyboards
Diffstat (limited to 'keyboards/1k/keymaps/media/rgblite.h')
-rw-r--r--keyboards/1k/keymaps/media/rgblite.h23
1 files changed, 0 insertions, 23 deletions
diff --git a/keyboards/1k/keymaps/media/rgblite.h b/keyboards/1k/keymaps/media/rgblite.h
deleted file mode 100644
index e64f49ee0a..0000000000
--- a/keyboards/1k/keymaps/media/rgblite.h
+++ /dev/null
@@ -1,23 +0,0 @@
-// Copyright 2022 Makoto Kurauchi (@MakotoKurauchi)
-// SPDX-License-Identifier: GPL-2.0-or-later
-
-#pragma once
-
-#include "ws2812.h"
-#include "color.h"
-
-static inline void rgblite_setrgb(RGB rgb) {
- LED_TYPE leds[RGBLED_NUM] = {{.r = rgb.r, .g = rgb.g, .b = rgb.b}};
- ws2812_setleds(leds, RGBLED_NUM);
-}
-
-static void rgblite_increase_hue(void) {
- static uint8_t state = 0;
-
- HSV hsv = { 255, 255, 255 };
- hsv.h = state;
- state = (state + 8) % 256;
-
- rgblite_setrgb(hsv_to_rgb(hsv));
-
-}