summaryrefslogtreecommitdiff
path: root/keyboards/crkbd/keymaps/jpe230/process_record.c
diff options
context:
space:
mode:
authorjpe230 <pablin.123.ra@gmail.com>2022-10-07 14:30:19 -0500
committerGitHub <noreply@github.com>2022-10-07 20:30:19 +0100
commit5d7e19209eac263f24d90e079749f646a86e50cc (patch)
treedb9f4ce73f9a99fdbd743ee6449d108d46327e04 /keyboards/crkbd/keymaps/jpe230/process_record.c
parentde2c81d5b29fc3b3b86f977b72ab3357a1d13a63 (diff)
Update CRKBD keymap (#18619)
Diffstat (limited to 'keyboards/crkbd/keymaps/jpe230/process_record.c')
-rw-r--r--keyboards/crkbd/keymaps/jpe230/process_record.c20
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;
+}