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

@ -57,6 +57,9 @@
]
},
"backlight": {
"default": {
"brightness": 3
},
"pin": "B5"
},
"rgblight": {

View file

@ -57,6 +57,9 @@
]
},
"backlight": {
"default": {
"brightness": 3
},
"pin": "B5"
},
"rgblight": {

View file

@ -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; }