diff options
author | Fred Silberberg <fred@silberberg.xyz> | 2018-08-05 08:42:16 -0700 |
---|---|---|
committer | Drashna Jaelre <drashna@live.com> | 2018-08-05 08:42:16 -0700 |
commit | 9a4db7a860ecb35ed6d1402955cc169512a8ba74 (patch) | |
tree | 636775298097afdd1f052759d8d389d86a9795bb /users/333fred/333fred.c | |
parent | a6e1cb08c657e5fe1d355a662b6cbd2e613d5f9b (diff) | |
download | qmk_firmware-9a4db7a860ecb35ed6d1402955cc169512a8ba74.tar.gz |
Keymap: Adds zen layout for 333fred (#3563)
* Initial commit of zen keymap
* Added RGB control for my zen
* Fixed ergodox layout.
* Reduce brightness.
* PR feedback.
Diffstat (limited to 'users/333fred/333fred.c')
-rw-r--r-- | users/333fred/333fred.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/users/333fred/333fred.c b/users/333fred/333fred.c index ef2d741e5..12ee9e7d7 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; +} |