From 5d7e19209eac263f24d90e079749f646a86e50cc Mon Sep 17 00:00:00 2001 From: jpe230 Date: Fri, 7 Oct 2022 14:30:19 -0500 Subject: Update CRKBD keymap (#18619) --- keyboards/crkbd/keymaps/jpe230/process_record.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 keyboards/crkbd/keymaps/jpe230/process_record.c (limited to 'keyboards/crkbd/keymaps/jpe230/process_record.c') 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; +} -- cgit v1.2.3