logo

qmk_firmware

custom branch of QMK firmware git clone https://anongit.hacktivis.me/git/qmk_firmware.git

ergodicity.c (498B)


  1. #include "quantum.h"
  2. void eeconfig_init_kb(void) {
  3. #ifdef BACKLIGHT_ENABLE
  4. backlight_enable();
  5. backlight_level(5);
  6. #endif
  7. #ifdef RGBLIGHT_ENABLE
  8. rgblight_enable(); // Enable RGB by default
  9. rgblight_sethsv(0, 255, 255); // Set default HSV - red hue, full saturation, full brightness
  10. #ifdef RGBLIGHT_EFFECT_RAINBOW_SWIRL
  11. rgblight_mode(RGBLIGHT_MODE_RAINBOW_SWIRL + 2); // set to RGB_RAINBOW_SWIRL by default
  12. #endif
  13. #endif
  14. eeconfig_update_kb(0);
  15. eeconfig_init_user();
  16. }