summaryrefslogtreecommitdiff
path: root/users/spidey3/init.c
blob: 273c2b28992f9fcb7cbb7eadd452feb3fe7230a4 (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
#include "spidey3.h"

void keyboard_post_init_user(void) {
#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
}