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/nix_studio/oxalys80/config.h | 18 ++++++++++++++++++ keyboards/nix_studio/oxalys80/keyboard.json | 3 +++ keyboards/nix_studio/oxalys80/oxalys80.c | 26 -------------------------- 3 files changed, 21 insertions(+), 26 deletions(-) create mode 100644 keyboards/nix_studio/oxalys80/config.h delete mode 100644 keyboards/nix_studio/oxalys80/oxalys80.c (limited to 'keyboards/nix_studio') diff --git a/keyboards/nix_studio/oxalys80/config.h b/keyboards/nix_studio/oxalys80/config.h new file mode 100644 index 0000000000..7943ea4a25 --- /dev/null +++ b/keyboards/nix_studio/oxalys80/config.h @@ -0,0 +1,18 @@ +/* Copyright 2021 Nix Studio + * + * 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 + 2) diff --git a/keyboards/nix_studio/oxalys80/keyboard.json b/keyboards/nix_studio/oxalys80/keyboard.json index 5fa489f72b..470c43ea2f 100644 --- a/keyboards/nix_studio/oxalys80/keyboard.json +++ b/keyboards/nix_studio/oxalys80/keyboard.json @@ -39,6 +39,9 @@ "pin": "B3" }, "rgblight": { + "default": { + "val": 128 + }, "saturation_steps": 8, "brightness_steps": 8, "led_count": 24, diff --git a/keyboards/nix_studio/oxalys80/oxalys80.c b/keyboards/nix_studio/oxalys80/oxalys80.c deleted file mode 100644 index cfebb71043..0000000000 --- a/keyboards/nix_studio/oxalys80/oxalys80.c +++ /dev/null @@ -1,26 +0,0 @@ -/* Copyright 2021 Nix Studio - * - * 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, 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(); -} -- cgit v1.2.3