diff options
author | Richard Baptist <rpbaptist@users.noreply.github.com> | 2023-08-14 20:21:34 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-14 12:21:34 -0600 |
commit | 815cecfbff7d24ee3c36692be0b0cfbe55c29980 (patch) | |
tree | a73048ce4cddcba9eb9addcadd43bc05d5961f5c /keyboards/crkbd/keymaps/rpbaptist/rgb.h | |
parent | f3ef90ba902b4cd198b75b1065a01a50ae3d421c (diff) |
[Keymap] Update rpbaptist crkbd (#21674)
Co-authored-by: Drashna Jaelre <drashna@live.com>
Co-authored-by: Richard Baptist <richard@remote.com>
Diffstat (limited to 'keyboards/crkbd/keymaps/rpbaptist/rgb.h')
-rw-r--r-- | keyboards/crkbd/keymaps/rpbaptist/rgb.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/keyboards/crkbd/keymaps/rpbaptist/rgb.h b/keyboards/crkbd/keymaps/rpbaptist/rgb.h new file mode 100644 index 0000000000..91c25f5c28 --- /dev/null +++ b/keyboards/crkbd/keymaps/rpbaptist/rgb.h @@ -0,0 +1,28 @@ +// Copyright 2023 Your Name (@rpbaptist) +// SPDX-License-Identifier: GPL-2.0-or-later + +#pragma once + +#include "transactions.h" + +typedef union { + uint32_t raw; + struct { + bool rgb_layer_indicator : 1; + bool rgb_matrix_idle_anim : 1; + uint8_t rgb_matrix_active_mode : 4; + uint8_t rgb_matrix_idle_mode : 4; + uint8_t rgb_matrix_active_speed : 2; + uint8_t rgb_matrix_idle_speed : 2; + uint32_t rgb_matrix_idle_timeout : 18; + }; +} user_config_t; + +extern user_config_t user_config; + +_Static_assert(sizeof(user_config_t) == sizeof(uint32_t), "Userspace EECONFIG out of spec."); + +const char *rgb_matrix_anim_oled_text(uint8_t mode); +void rgb_matrix_set_gaming_defaults(void); +void rgb_matrix_set_typing_defaults(void); +bool process_record_user_rgb_matrix(uint16_t keycode, keyrecord_t *record); |