1
0
Fork 0

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,16 +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) {
#ifdef RGBLIGHT_ENABLE
rgblight_enable(); // Enable RGB by default
rgblight_sethsv(0, 255, 255); // Set default HSV - red hue, full saturation, full brightness
#ifdef RGBLIGHT_EFFECT_RAINBOW_SWIRL
rgblight_mode(RGBLIGHT_MODE_RAINBOW_SWIRL + 2); // set to RGB_RAINBOW_SWIRL by default
#endif
#endif
eeconfig_init_user();
}
#define RGBLIGHT_DEFAULT_MODE (RGBLIGHT_MODE_RAINBOW_SWIRL + 2)