From 52ee9f2ce1dd7b67a9cd1332d198b63c1d0dc7c8 Mon Sep 17 00:00:00 2001 From: Joel Challis Date: Fri, 12 Jul 2024 08:06:19 +0100 Subject: Convert `eeconfig_init_kb` implementations to config (#24087) --- keyboards/senselessclay/gos65/config.h | 18 ++++++++++++++++++ keyboards/senselessclay/gos65/gos65.c | 26 -------------------------- keyboards/senselessclay/gos65/keyboard.json | 3 +++ 3 files changed, 21 insertions(+), 26 deletions(-) create mode 100644 keyboards/senselessclay/gos65/config.h delete mode 100644 keyboards/senselessclay/gos65/gos65.c (limited to 'keyboards/senselessclay') diff --git a/keyboards/senselessclay/gos65/config.h b/keyboards/senselessclay/gos65/config.h new file mode 100644 index 0000000000..ef2b83ef3e --- /dev/null +++ b/keyboards/senselessclay/gos65/config.h @@ -0,0 +1,18 @@ +/* Copyright 2020 Hadi Iskandarani + * + * 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 + * the Free Software Foundation, either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +#pragma once + +#define RGBLIGHT_DEFAULT_MODE (RGBLIGHT_MODE_RAINBOW_SWIRL + 5) diff --git a/keyboards/senselessclay/gos65/gos65.c b/keyboards/senselessclay/gos65/gos65.c deleted file mode 100644 index e769608c89..0000000000 --- a/keyboards/senselessclay/gos65/gos65.c +++ /dev/null @@ -1,26 +0,0 @@ -/* Copyright 2020 Hadi Iskandarani - * - * 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 - * the Free Software Foundation, either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ - -#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(); -} \ No newline at end of file diff --git a/keyboards/senselessclay/gos65/keyboard.json b/keyboards/senselessclay/gos65/keyboard.json index b869d91301..ee6bb5727a 100644 --- a/keyboards/senselessclay/gos65/keyboard.json +++ b/keyboards/senselessclay/gos65/keyboard.json @@ -12,6 +12,9 @@ "pin": "B0" }, "rgblight": { + "default": { + "val": 125 + }, "led_count": 68, "max_brightness": 125, "sleep": true, -- cgit v1.2.3