aboutsummaryrefslogtreecommitdiffstats
path: root/keyboards/keebio/stick
diff options
context:
space:
mode:
authorJoel Challis2025-09-12 11:23:16 +0200
committerGitHub2025-09-12 11:23:16 +0200
commit3320e98ccf6d1fccfada9d6f1d97759e80a340e8 (patch)
treed89ff9583196ceabd63b5334c5dd73ed78a05c85 /keyboards/keebio/stick
parent319da7bfdb7d6d923baff139f2f5ee58c9d53182 (diff)
Migrate `eeconfig_init_kb` implementations to config (#25422)
Diffstat (limited to 'keyboards/keebio/stick')
-rw-r--r--keyboards/keebio/stick/config.h6
-rw-r--r--keyboards/keebio/stick/stick.c17
2 files changed, 6 insertions, 17 deletions
diff --git a/keyboards/keebio/stick/config.h b/keyboards/keebio/stick/config.h
new file mode 100644
index 0000000000..4ffb768771
--- /dev/null
+++ b/keyboards/keebio/stick/config.h
@@ -0,0 +1,6 @@
+// Copyright 2025 Danny Nguyen (danny@keeb.io)
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#pragma once
+
+#define RGBLIGHT_DEFAULT_MODE (RGBLIGHT_MODE_RAINBOW_SWIRL + 2)
diff --git a/keyboards/keebio/stick/stick.c b/keyboards/keebio/stick/stick.c
index e54a0aa09f..9c5e67d93d 100644
--- a/keyboards/keebio/stick/stick.c
+++ b/keyboards/keebio/stick/stick.c
@@ -17,23 +17,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "quantum.h"
-void eeconfig_init_kb(void) {
-#ifdef RGBLIGHT_ENABLE
- rgblight_enable(); // Enable RGB by default
- rgblight_sethsv(0, 255, 255); // Set default HSV - red hue, full saturation, full brightness
-# ifdef RGBLIGHT_EFFECT_RAINDOWN_SWIRL
- rgblight_mode(RGBLIGHT_MODE_RAINBOW_SWIRL + 2); // set to RGB_RAINBOW_SWIRL by default
-# endif
-#endif
-
-#ifdef RGB_MATRIX_ENABLE
- rgb_matrix_enable(); // Enable RGB by default
-#endif
-
- eeconfig_update_kb(0);
- eeconfig_init_user();
-}
-
bool encoder_update_kb(uint8_t index, bool clockwise) {
if (!encoder_update_user(index, clockwise)) { return false; }
if (index == 0) {