]> git.donarmstrong.com Git - qmk_firmware.git/blobdiff - users/drashna/drashna.c
[Keyboard] Added RAMA KOYU (#5512)
[qmk_firmware.git] / users / drashna / drashna.c
index 222824837981d4fa6632060d6d332bc2c2f72e3f..6968a4b9285866db4939a841d6c1f0e030f7355a 100644 (file)
@@ -122,11 +122,17 @@ void matrix_init_user(void) {
     get_unicode_input_mode();
   #endif //UNICODE_ENABLE
   matrix_init_keymap();
-  #ifdef RGBLIGHT_ENABLE
-    matrix_init_rgb();
-  #endif //RGBLIGHT_ENABLE
 }
 
+__attribute__((weak))
+void keyboard_post_init_keymap(void){ }
+
+void keyboard_post_init_user(void){
+#ifdef RGBLIGHT_ENABLE
+  keyboard_post_init_rgb();
+#endif
+  keyboard_post_init_keymap();
+}
 
 __attribute__ ((weak))
 void shutdown_keymap(void) {}
@@ -138,9 +144,9 @@ void shutdown_user (void) {
     rgblight_setrgb_red();
   #endif // RGBLIGHT_ENABLE
   #ifdef RGB_MATRIX_ENABLE
-    uint16_t timer_start = timer_read();
-    rgb_matrix_set_color_all( 0xFF, 0x00, 0x00 );
-    while(timer_elapsed(timer_start) < 250) { wait_ms(1); }
+    // uint16_t timer_start = timer_read();
+    // rgb_matrix_set_color_all( 0xFF, 0x00, 0x00 );
+    // while(timer_elapsed(timer_start) < 250) { wait_ms(1); }
   #endif //RGB_MATRIX_ENABLE
   shutdown_keymap();
 }
@@ -208,9 +214,11 @@ uint32_t default_layer_state_set_keymap (uint32_t state) {
 // Runs state check and changes underglow color and animation
 uint32_t default_layer_state_set_user(uint32_t state) {
   state = default_layer_state_set_keymap(state);
+#if 0
 #ifdef RGBLIGHT_ENABLE
   state = default_layer_state_set_rgb(state);
 #endif // RGBLIGHT_ENABLE
+#endif
   return state;
 }