Convert eeconfig_init_kb implementations to config (#24087)

This commit is contained in:
Joel Challis 2024-07-12 08:06:19 +01:00 committed by GitHub
parent 2c2885639e
commit 52ee9f2ce1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
31 changed files with 63 additions and 210 deletions

View file

@ -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)

View file

@ -12,6 +12,9 @@
"pin": "B0"
},
"rgblight": {
"default": {
"val": 125
},
"led_count": 68,
"max_brightness": 125,
"sleep": true,