init.c 569 B

12345678910111213141516171819202122232425262728
  1. #include "spidey3.h"
  2. void keyboard_post_init_user(void) {
  3. #ifdef RGBLIGHT_ENABLE
  4. keyboard_post_init_user_rgb();
  5. #endif
  6. }
  7. void eeconfig_init_user(void) {
  8. print("eeconfig_init_user\n");
  9. set_single_persistent_default_layer(_BASE);
  10. #ifdef UNICODEMAP_ENABLE
  11. eeconfig_init_user_unicode();
  12. #endif
  13. #ifdef RGBLIGHT_ENABLE
  14. eeconfig_init_user_rgb();
  15. #endif
  16. }
  17. void shutdown_user() {
  18. #ifdef RGBLIGHT_ENABLE
  19. clear_rgb_layers();
  20. rgblight_enable();
  21. rgblight_mode_noeeprom(RGBLIGHT_MODE_STATIC_LIGHT);
  22. rgblight_sethsv_noeeprom(HSV_RED);
  23. #endif
  24. }