diff options
author | QMK Bot <hello@qmk.fm> | 2022-10-07 19:31:00 +0000 |
---|---|---|
committer | QMK Bot <hello@qmk.fm> | 2022-10-07 19:31:00 +0000 |
commit | c1e05b14d5a1c73c328e791db2aea5834ffa67c0 (patch) | |
tree | 7c23049b9d1ccee11974d88ede7fe656bc4cb2ee /keyboards/crkbd/keymaps/jpe230/process_record.c | |
parent | 150572da447ea4ec54df0621c2cb47c26818b621 (diff) | |
parent | 5d7e19209eac263f24d90e079749f646a86e50cc (diff) |
Merge remote-tracking branch 'origin/master' into develop
Diffstat (limited to 'keyboards/crkbd/keymaps/jpe230/process_record.c')
-rw-r--r-- | keyboards/crkbd/keymaps/jpe230/process_record.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/keyboards/crkbd/keymaps/jpe230/process_record.c b/keyboards/crkbd/keymaps/jpe230/process_record.c new file mode 100644 index 0000000000..db10438d8f --- /dev/null +++ b/keyboards/crkbd/keymaps/jpe230/process_record.c @@ -0,0 +1,20 @@ +// Copyright 2022 Jose Pablo Ramirez (@jpe230) +// SPDX-License-Identifier: GPL-2.0-or-later + +#include "jpe230.h" + +bool process_record_user(uint16_t keycode, keyrecord_t *record) { + if (record->event.pressed) { + oled_timer_reset(); + set_keylog(keycode, record); + + switch (keycode) { + case QK_BOOT: + rgb_matrix_set_color_all(30, 0, 0); + rgb_matrix_driver.flush(); + oled_off(); + return true; + } + } + return true; +} |