Skip to content

Commit

Permalink
Convert eeconfig_init_kb implementations to config (qmk#24087)
Browse files Browse the repository at this point in the history
  • Loading branch information
zvecr authored Jul 12, 2024
1 parent 2c28856 commit 52ee9f2
Show file tree
Hide file tree
Showing 31 changed files with 63 additions and 210 deletions.
27 changes: 0 additions & 27 deletions keyboards/0xcb/1337/1337.c

This file was deleted.

3 changes: 3 additions & 0 deletions keyboards/0xcb/1337/keyboard.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
"device_version": "0.0.1"
},
"backlight": {
"default": {
"brightness": 5
},
"pin": "B5",
"levels": 7,
"breathing": true
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Copyright 2021 Harrison Chan (Xelus)
/* Copyright 2020 GhostSeven <work@ghost7.com>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand All @@ -13,13 +13,6 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#pragma once

#include "quantum.h"

void eeconfig_init_kb(void) { // EEPROM is getting reset!
rgblight_enable(); // Enable RGB by default
rgblight_mode(RGBLIGHT_MODE_RGB_TEST); // set to RGBLIGHT_MODE_RGB_TEST by default

eeconfig_update_kb(0);
eeconfig_init_user();
}
#define RGBLIGHT_DEFAULT_MODE (RGBLIGHT_MODE_RAINBOW_SWIRL + 2)
28 changes: 0 additions & 28 deletions keyboards/handwired/bento/rev1/rev1.c

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,6 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "quantum.h"
#pragma once

void eeconfig_init_kb(void) { // EEPROM is getting reset!
rgblight_enable(); // Enable RGB by default
rgblight_sethsv(0, 255, 128); // Set default HSV - red hue, full saturation, medium brightness
rgblight_mode(RGBLIGHT_MODE_RAINBOW_SWIRL + 2); // set to RGB_RAINBOW_SWIRL by default

eeconfig_update_kb(0);
eeconfig_init_user();
}
#define RGBLIGHT_DEFAULT_MODE (RGBLIGHT_MODE_RAINBOW_SWIRL + 2)
3 changes: 3 additions & 0 deletions keyboards/hineybush/h660s/keyboard.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@
"breathing": true
},
"rgblight": {
"default": {
"val": 128
},
"saturation_steps": 8,
"brightness_steps": 8,
"led_count": 16,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,6 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#pragma once

#include "quantum.h"

void eeconfig_init_kb(void) { // EEPROM is getting reset!
rgblight_enable(); // Enable RGB by default
rgblight_sethsv(0, 255, 128); // Set default HSV - red hue, full saturation, medium brightness
rgblight_mode(RGBLIGHT_MODE_RAINBOW_SWIRL + 2); // set to RGB_RAINBOW_SWIRL by default

eeconfig_update_kb(0);
eeconfig_init_user();
}
#define RGBLIGHT_DEFAULT_MODE (RGBLIGHT_MODE_RAINBOW_SWIRL + 2)
3 changes: 3 additions & 0 deletions keyboards/hineybush/h75_singa/keyboard.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@
"breathing": true
},
"rgblight": {
"default": {
"val": 128
},
"saturation_steps": 8,
"brightness_steps": 8,
"led_count": 22,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,6 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#pragma once

#include "quantum.h"

void eeconfig_init_kb(void) { // EEPROM is getting reset!
rgblight_enable(); // Enable RGB by default
rgblight_sethsv(0, 255, 128); // Set default HSV - red hue, full saturation, medium brightness
rgblight_mode(RGBLIGHT_MODE_RAINBOW_SWIRL + 2); // set to RGB_RAINBOW_SWIRL by default

eeconfig_update_kb(0);
eeconfig_init_user();
}

#define RGBLIGHT_DEFAULT_MODE (RGBLIGHT_MODE_RAINBOW_SWIRL + 2)
3 changes: 3 additions & 0 deletions keyboards/hineybush/h87a/keyboard.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@
"pin": "D3"
},
"rgblight": {
"default": {
"val": 128
},
"saturation_steps": 8,
"brightness_steps": 8,
"led_count": 24,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,6 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "quantum.h"
#pragma once

void eeconfig_init_kb(void) { // EEPROM is getting reset!
rgblight_enable(); // Enable RGB by default
rgblight_sethsv(0, 255, 128); // Set default HSV - red hue, full saturation, medium brightness
rgblight_mode(RGBLIGHT_MODE_RAINBOW_SWIRL + 2); // set to RGB_RAINBOW_SWIRL by default

eeconfig_update_kb(0);
eeconfig_init_user();
}
#define RGBLIGHT_DEFAULT_MODE (RGBLIGHT_MODE_RAINBOW_SWIRL + 2)
3 changes: 3 additions & 0 deletions keyboards/hineybush/h88/keyboard.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@
"on_state": 0
},
"rgblight": {
"default": {
"val": 128
},
"saturation_steps": 8,
"brightness_steps": 8,
"led_count": 24,
Expand Down
2 changes: 2 additions & 0 deletions keyboards/hineybush/hbcp/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,5 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#define MATRIX_ROW_PINS { B1, B6, D0, C7, C6, C5 }
#define MATRIX_COL_PINS { F0, F1, F2, F3, F4, F5, F6, F7, A0, A1, A2, A3, A4, A5, B5, B4, B3, B2 }

#define RGBLIGHT_DEFAULT_MODE (RGBLIGHT_MODE_RAINBOW_SWIRL + 2)
9 changes: 0 additions & 9 deletions keyboards/hineybush/hbcp/hbcp.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,6 @@

// #define HSV_custom_color H, S, V

void eeconfig_init_kb(void) { // EEPROM is getting reset!
rgblight_enable(); // Enable RGB by default
rgblight_sethsv(0, 255, 128); // Set default HSV - red hue, full saturation, medium brightness
rgblight_mode(RGBLIGHT_MODE_RAINBOW_SWIRL + 2); // set to RGB_RAINBOW_SWIRL by default

eeconfig_update_kb(0);
eeconfig_init_user();
}

#ifdef RGBLIGHT_ENABLE

bool led_update_kb(led_t led_state) {
Expand Down
3 changes: 3 additions & 0 deletions keyboards/hineybush/hbcp/keyboard.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
"pin": "B0"
},
"rgblight": {
"default": {
"val": 128
},
"saturation_steps": 8,
"brightness_steps": 8,
"led_count": 27,
Expand Down
3 changes: 3 additions & 0 deletions keyboards/keebio/sinc/rev1/keyboard.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@
]
},
"backlight": {
"default": {
"brightness": 3
},
"pin": "B5"
},
"rgblight": {
Expand Down
3 changes: 3 additions & 0 deletions keyboards/keebio/sinc/rev2/keyboard.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@
]
},
"backlight": {
"default": {
"brightness": 3
},
"pin": "B5"
},
"rgblight": {
Expand Down
9 changes: 0 additions & 9 deletions keyboards/keebio/sinc/sinc.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,6 @@ bool led_update_kb(led_t led_state) {
}
#endif

void eeconfig_init_kb(void) {
#ifdef BACKLIGHT_ENABLE
backlight_enable();
backlight_level(3);
#endif
eeconfig_update_kb(0);
eeconfig_init_user();
}

#ifdef ENCODER_ENABLE
bool encoder_update_kb(uint8_t index, bool clockwise) {
if (!encoder_update_user(index, clockwise)) { return false; }
Expand Down
6 changes: 0 additions & 6 deletions keyboards/kumaokobo/kudox_full/kudox_full.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,6 @@

#include "quantum.h"

#ifdef RGBLIGHT_ENABLE
void eeconfig_init_kb(void) {
rgblight_mode(RGBLIGHT_MODE_RAINBOW_SWIRL);
};
#endif

#ifdef OLED_ENABLE
bool oled_task_kb(void) {
if (!oled_task_user()) { return false; }
Expand Down
3 changes: 3 additions & 0 deletions keyboards/kumaokobo/kudox_full/rev1/keyboard.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@
"knight": true,
"christmas": true,
"static_gradient": true
},
"default": {
"animation": "rainbow_swirl"
}
},
"ws2812": {
Expand Down
2 changes: 2 additions & 0 deletions keyboards/mixi/config.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#pragma once

#define RGBLIGHT_DEFAULT_MODE (RGBLIGHT_MODE_RAINBOW_SWIRL + 5)

#define RGBLIGHT_LAYERS
#define RGBLIGHT_LAYER_BLINK
14 changes: 0 additions & 14 deletions keyboards/mixi/mixi.c

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,6 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#pragma once

#include "quantum.h"

void eeconfig_init_kb(void) { // EEPROM is getting reset!
rgblight_enable(); // Enable RGB by default
rgblight_sethsv(0, 255, 128); // Set default HSV - red hue, full saturation, medium brightness
rgblight_mode(RGBLIGHT_MODE_RAINBOW_SWIRL + 2); // set to RGB_RAINBOW_SWIRL by default

eeconfig_update_kb(0);
eeconfig_init_user();
}
#define RGBLIGHT_DEFAULT_MODE (RGBLIGHT_MODE_RAINBOW_SWIRL + 2)
3 changes: 3 additions & 0 deletions keyboards/nix_studio/oxalys80/keyboard.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@
"pin": "B3"
},
"rgblight": {
"default": {
"val": 128
},
"saturation_steps": 8,
"brightness_steps": 8,
"led_count": 24,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,6 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#pragma once

#include "quantum.h"

void eeconfig_init_kb(void) { // EEPROM is getting reset!
rgblight_enable(); // Enable RGB by default
rgblight_sethsv(0, 255, 125); // Set default HSV - red hue, full saturation, medium brightness
rgblight_mode(RGBLIGHT_MODE_RAINBOW_SWIRL + 5); // set to RGB_RAINBOW_SWIRL by default

eeconfig_update_kb(0);
eeconfig_init_user();
}
#define RGBLIGHT_DEFAULT_MODE (RGBLIGHT_MODE_RAINBOW_SWIRL + 5)
3 changes: 3 additions & 0 deletions keyboards/senselessclay/gos65/keyboard.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
"pin": "B0"
},
"rgblight": {
"default": {
"val": 125
},
"led_count": 68,
"max_brightness": 125,
"sleep": true,
Expand Down
5 changes: 5 additions & 0 deletions keyboards/wilba_tech/wt60_xt/keyboard.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@
"resync": true
}
},
"audio": {
"default": {
"clicky": false
}
},
"matrix_pins": {
"cols": ["B7", "B0", "F5", "D5", "B1", "B2", "B3", "D3", "D2", "C7", "B6", "B5", "B4", "D7", "D6", "D4"],
"rows": ["F0", "E6", "F4", "F6", "F7"]
Expand Down
Loading

0 comments on commit 52ee9f2

Please sign in to comment.