Skip to content

Commit

Permalink
RGB control tuning
Browse files Browse the repository at this point in the history
  • Loading branch information
lleonini committed Jul 20, 2024
1 parent 4974848 commit 8eb521f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion keyboards/adm42/v2/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#define RGB_MATRIX_FRAMEBUFFER_EFFECTS

#define RGB_MATRIX_SAT_STEP 24
#define RGB_MATRIX_HUE_STEP 12
#define RGB_MATRIX_HUE_STEP 8
#define RGB_MATRIX_VAL_STEP 16
#define RGB_MATRIX_SPD_STEP 16

Expand Down
4 changes: 2 additions & 2 deletions keyboards/adm42/v2/keymaps/default/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -1018,10 +1018,10 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
rgb_wpm_toggle();
return false;
case RGB_VAD:
if (rgb_val >= RGB_MATRIX_VAL_STEP) {
if (rgb_val >= (2 * RGB_MATRIX_VAL_STEP)) {
rgb_val -= RGB_MATRIX_VAL_STEP;
} else {
rgb_val = 0;
rgb_val = RGB_MATRIX_VAL_STEP;
}
rgb_wpm_disable();
rgb_set_val(rgb_val);
Expand Down

0 comments on commit 8eb521f

Please sign in to comment.