diff options
| author | Joel Challis | 2025-09-12 11:23:16 +0200 |
|---|---|---|
| committer | GitHub | 2025-09-12 11:23:16 +0200 |
| commit | 3320e98ccf6d1fccfada9d6f1d97759e80a340e8 (patch) | |
| tree | d89ff9583196ceabd63b5334c5dd73ed78a05c85 /keyboards/keebio/ergodicity | |
| parent | 319da7bfdb7d6d923baff139f2f5ee58c9d53182 (diff) | |
Migrate `eeconfig_init_kb` implementations to config (#25422)
Diffstat (limited to 'keyboards/keebio/ergodicity')
| -rw-r--r-- | keyboards/keebio/ergodicity/config.h | 6 | ||||
| -rw-r--r-- | keyboards/keebio/ergodicity/ergodicity.c | 18 | ||||
| -rw-r--r-- | keyboards/keebio/ergodicity/keyboard.json | 3 |
3 files changed, 9 insertions, 18 deletions
diff --git a/keyboards/keebio/ergodicity/config.h b/keyboards/keebio/ergodicity/config.h new file mode 100644 index 0000000000..4ffb768771 --- /dev/null +++ b/keyboards/keebio/ergodicity/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/ergodicity/ergodicity.c b/keyboards/keebio/ergodicity/ergodicity.c deleted file mode 100644 index 76fb136c03..0000000000 --- a/keyboards/keebio/ergodicity/ergodicity.c +++ /dev/null @@ -1,18 +0,0 @@ -#include "quantum.h" - -void eeconfig_init_kb(void) { -#ifdef BACKLIGHT_ENABLE - backlight_enable(); - backlight_level(5); -#endif -#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_RAINBOW_SWIRL - rgblight_mode(RGBLIGHT_MODE_RAINBOW_SWIRL + 2); // set to RGB_RAINBOW_SWIRL by default -#endif -#endif - - eeconfig_update_kb(0); - eeconfig_init_user(); -} diff --git a/keyboards/keebio/ergodicity/keyboard.json b/keyboards/keebio/ergodicity/keyboard.json index 6f755ba45c..504edf3b56 100644 --- a/keyboards/keebio/ergodicity/keyboard.json +++ b/keyboards/keebio/ergodicity/keyboard.json @@ -29,6 +29,9 @@ }, "diode_direction": "COL2ROW", "backlight": { + "default": { + "brightness": 5 + }, "pin": "B5", "levels": 7, "breathing": true |