summaryrefslogtreecommitdiff
path: root/keyboards/handwired/d48/keymaps/anderson/lightmode.c
diff options
context:
space:
mode:
authorJoel Challis <git@zvecr.com>2023-11-26 18:36:45 +0000
committerGitHub <noreply@github.com>2023-11-27 05:36:45 +1100
commit1ed03f498fa204178c2696c510ac6a2cd8524e2d (patch)
treeb97c1f983b7e4b57c007d0feedadd3ad3e39062b /keyboards/handwired/d48/keymaps/anderson/lightmode.c
parent4908d4b1ca260efecf3613e6517aa3a6f2034876 (diff)
Remove userspace keymaps (#22544)
Diffstat (limited to 'keyboards/handwired/d48/keymaps/anderson/lightmode.c')
-rw-r--r--keyboards/handwired/d48/keymaps/anderson/lightmode.c44
1 files changed, 0 insertions, 44 deletions
diff --git a/keyboards/handwired/d48/keymaps/anderson/lightmode.c b/keyboards/handwired/d48/keymaps/anderson/lightmode.c
deleted file mode 100644
index bc05956214..0000000000
--- a/keyboards/handwired/d48/keymaps/anderson/lightmode.c
+++ /dev/null
@@ -1,44 +0,0 @@
-#include "lightmode.h"
-
-#ifdef LIGHTMODE_ENABLE
-
-/* Light modes switcher */
-
-uint8_t light_mode = SMOOTHLED;
-
-void set_light_mode(light_mode_t value, uint32_t color) {
- light_mode = value;
- if (light_mode == SMOOTHLED) {
- smoothled_set(color);
- } else {
- dmc12_start(color, true);
- }
-}
-
-void process_light_mode(void) {
- if (light_mode == SMOOTHLED) {
- smoothled_process();
- } else {
- dmc12_process();
- }
-}
-
-void update_light_mode(uint32_t color) {
- if (light_mode == SMOOTHLED) {
- smoothled_set(color);
- } else {
- dmc12_start(color, false);
- }
-}
-
-void next_light_mode(uint32_t color) {
- light_mode = (light_mode + 1) % LIGHT_MODE_SIZE;
- set_light_mode(light_mode, color);
-}
-
-void matrix_scan_kb(void) {
- process_light_mode();
- matrix_scan_user();
-}
-
-#endif