summaryrefslogtreecommitdiffstats
path: root/users/333fred/333fred.c
diff options
context:
space:
mode:
Diffstat (limited to 'users/333fred/333fred.c')
-rw-r--r--users/333fred/333fred.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/users/333fred/333fred.c b/users/333fred/333fred.c
index ef2d741e5b..12ee9e7d7d 100644
--- a/users/333fred/333fred.c
+++ b/users/333fred/333fred.c
@@ -34,6 +34,7 @@ void tap_dance_layer_finished(qk_tap_dance_state_t *state, void *user_data) {
break;
case DOUBLE:
layer_on(VIM);
+ break;
}
}
@@ -61,3 +62,26 @@ void tap_dance_process_record(uint16_t keycode) {
tap_dance_active = false;
}
}
+
+__attribute__ ((weak))
+void matrix_init_rgb(void) {}
+
+__attribute__ ((weak))
+void layer_state_set_rgb(uint32_t state) {}
+
+__attribute__ ((weak))
+void matrix_scan_user_keyboard(void) {}
+
+void matrix_scan_user() {
+ static bool first_run = true;
+ if (first_run) {
+ first_run = false;
+ matrix_init_rgb();
+ }
+ matrix_scan_user_keyboard();
+}
+
+uint32_t layer_state_set_user(uint32_t state) {
+ layer_state_set_rgb(state);
+ return state;
+}