Skip to content
This repository has been archived by the owner on Feb 20, 2024. It is now read-only.

Commit

Permalink
Stay within limit of 32 INT
Browse files Browse the repository at this point in the history
  • Loading branch information
richardbaptist committed Aug 3, 2023
1 parent 26ba891 commit 5a80fa3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion keyboards/crkbd/keymaps/rpbaptist/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.

#ifdef RGB_MATRIX_ENABLE
# define RGB_MATRIX_LED_PROCESS_LIMIT (RGB_MATRIX_LED_COUNT + 4) / 5 // limits the number of LEDs to process in an animation per task run (increases keyboard responsiveness)
# define IDLE_TIMEOUT 60000 * 5
# define IDLE_TIMEOUT 60000 * 4
# define GAMING_IDLE_TIMEOUT 10000
# define RGB_MATRIX_TYPING_ACTIVE RGB_MATRIX_SOLID_REACTIVE_SIMPLE
# define RGB_MATRIX_TYPING_PASSIVE RGB_MATRIX_CYCLE_ALL
Expand Down
8 changes: 5 additions & 3 deletions keyboards/crkbd/keymaps/rpbaptist/rgb.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,16 @@ typedef union {
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 : 8;
uint8_t rgb_matrix_idle_speed : 8;
uint32_t rgb_matrix_idle_timeout : 32;
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_layer_helper(uint8_t hue, uint8_t sat, uint8_t val, uint8_t led_min, uint8_t led_max);
void check_default_layer(uint8_t led_min, uint8_t led_max);
Expand Down

0 comments on commit 5a80fa3

Please sign in to comment.