aboutsummaryrefslogtreecommitdiff
path: root/keyboards/hineybush
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/hineybush')
-rw-r--r--keyboards/hineybush/h660s/config.h (renamed from keyboards/hineybush/h87a/h87a.c)11
-rw-r--r--keyboards/hineybush/h660s/keyboard.json3
-rw-r--r--keyboards/hineybush/h75_singa/config.h (renamed from keyboards/hineybush/h75_singa/h75_singa.c)12
-rw-r--r--keyboards/hineybush/h75_singa/keyboard.json3
-rw-r--r--keyboards/hineybush/h87a/config.h (renamed from keyboards/hineybush/h660s/h660s.c)13
-rw-r--r--keyboards/hineybush/h87a/keyboard.json3
-rw-r--r--keyboards/hineybush/h88/config.h (renamed from keyboards/hineybush/h88/h88.c)11
-rw-r--r--keyboards/hineybush/h88/keyboard.json3
-rw-r--r--keyboards/hineybush/hbcp/config.h2
-rw-r--r--keyboards/hineybush/hbcp/hbcp.c9
-rw-r--r--keyboards/hineybush/hbcp/keyboard.json3
11 files changed, 25 insertions, 48 deletions
diff --git a/keyboards/hineybush/h87a/h87a.c b/keyboards/hineybush/h660s/config.h
index 8c10b68ca0..2ac1c1bae5 100644
--- a/keyboards/hineybush/h87a/h87a.c
+++ b/keyboards/hineybush/h660s/config.h
@@ -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)
diff --git a/keyboards/hineybush/h660s/keyboard.json b/keyboards/hineybush/h660s/keyboard.json
index d76664080e..44e8c8c21a 100644
--- a/keyboards/hineybush/h660s/keyboard.json
+++ b/keyboards/hineybush/h660s/keyboard.json
@@ -35,6 +35,9 @@
"breathing": true
},
"rgblight": {
+ "default": {
+ "val": 128
+ },
"saturation_steps": 8,
"brightness_steps": 8,
"led_count": 16,
diff --git a/keyboards/hineybush/h75_singa/h75_singa.c b/keyboards/hineybush/h75_singa/config.h
index badd12849d..6be72d4d9f 100644
--- a/keyboards/hineybush/h75_singa/h75_singa.c
+++ b/keyboards/hineybush/h75_singa/config.h
@@ -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)
diff --git a/keyboards/hineybush/h75_singa/keyboard.json b/keyboards/hineybush/h75_singa/keyboard.json
index 30dbd8d6a1..0c3ca31e28 100644
--- a/keyboards/hineybush/h75_singa/keyboard.json
+++ b/keyboards/hineybush/h75_singa/keyboard.json
@@ -34,6 +34,9 @@
"breathing": true
},
"rgblight": {
+ "default": {
+ "val": 128
+ },
"saturation_steps": 8,
"brightness_steps": 8,
"led_count": 22,
diff --git a/keyboards/hineybush/h660s/h660s.c b/keyboards/hineybush/h87a/config.h
index 0e774b9c57..9ff1e426bd 100644
--- a/keyboards/hineybush/h660s/h660s.c
+++ b/keyboards/hineybush/h87a/config.h
@@ -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)
diff --git a/keyboards/hineybush/h87a/keyboard.json b/keyboards/hineybush/h87a/keyboard.json
index 987d1a60fd..42a50bf001 100644
--- a/keyboards/hineybush/h87a/keyboard.json
+++ b/keyboards/hineybush/h87a/keyboard.json
@@ -44,6 +44,9 @@
"pin": "D3"
},
"rgblight": {
+ "default": {
+ "val": 128
+ },
"saturation_steps": 8,
"brightness_steps": 8,
"led_count": 24,
diff --git a/keyboards/hineybush/h88/h88.c b/keyboards/hineybush/h88/config.h
index 7c63446751..2537b3f36c 100644
--- a/keyboards/hineybush/h88/h88.c
+++ b/keyboards/hineybush/h88/config.h
@@ -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)
diff --git a/keyboards/hineybush/h88/keyboard.json b/keyboards/hineybush/h88/keyboard.json
index b1bb842303..6a9b3142e3 100644
--- a/keyboards/hineybush/h88/keyboard.json
+++ b/keyboards/hineybush/h88/keyboard.json
@@ -41,6 +41,9 @@
"on_state": 0
},
"rgblight": {
+ "default": {
+ "val": 128
+ },
"saturation_steps": 8,
"brightness_steps": 8,
"led_count": 24,
diff --git a/keyboards/hineybush/hbcp/config.h b/keyboards/hineybush/hbcp/config.h
index bde356232d..d3274f8c5a 100644
--- a/keyboards/hineybush/hbcp/config.h
+++ b/keyboards/hineybush/hbcp/config.h
@@ -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)
diff --git a/keyboards/hineybush/hbcp/hbcp.c b/keyboards/hineybush/hbcp/hbcp.c
index e422b46fdc..a9eff65030 100644
--- a/keyboards/hineybush/hbcp/hbcp.c
+++ b/keyboards/hineybush/hbcp/hbcp.c
@@ -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) {
diff --git a/keyboards/hineybush/hbcp/keyboard.json b/keyboards/hineybush/hbcp/keyboard.json
index f03c4d5754..e8771ea9a7 100644
--- a/keyboards/hineybush/hbcp/keyboard.json
+++ b/keyboards/hineybush/hbcp/keyboard.json
@@ -16,6 +16,9 @@
"pin": "B0"
},
"rgblight": {
+ "default": {
+ "val": 128
+ },
"saturation_steps": 8,
"brightness_steps": 8,
"led_count": 27,