diff options
author | zvecr <git@zvecr.com> | 2023-08-15 10:49:57 +0100 |
---|---|---|
committer | zvecr <git@zvecr.com> | 2023-08-15 10:49:57 +0100 |
commit | 3ece80f73f781a719ea6665af1d01b99922388e9 (patch) | |
tree | 3a387461b106415b8524b219da4053a680d9c9f1 /keyboards/crkbd/keymaps/rpbaptist/rgb.h | |
parent | f38ccaa598f83aefc7821d5491970a31de4c6acc (diff) | |
parent | dbd847d4d3835ec4ab1067b535231284c5cece2d (diff) |
Merge remote-tracking branch 'origin/master' into develop
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); |