aboutsummaryrefslogtreecommitdiffstats
path: root/users/spidey3/init.c
blob: b9239460934ccfdce1891789e6b47923b6887b3d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#include "spidey3.h"

void keyboard_post_init_user(void) {
  print("keyboard_post_init_user\n");
  uprintf("\tdebug_enable=%u\n", debug_enable);
#ifdef RGBLIGHT_ENABLE
  keyboard_post_init_user_rgb();
#endif
}

void eeconfig_init_user(void) {
  print("eeconfig_init_user\n");
  set_single_persistent_default_layer(_BASE);
#ifdef UNICODEMAP_ENABLE
  eeconfig_init_user_unicode();
#endif

#ifdef RGBLIGHT_ENABLE
  eeconfig_init_user_rgb();
#endif
}

void shutdown_user() {
#ifdef RGBLIGHT_ENABLE
  clear_rgb_layers();
  rgblight_enable();
  rgblight_mode_noeeprom(RGBLIGHT_MODE_STATIC_LIGHT);
  rgblight_sethsv_noeeprom(HSV_RED);
#endif
}