Change DRIVER_LED_COUNT
to {LED,RGB}_MATRIX_LED_COUNT
(#18399)
This commit is contained in:
parent
d967de0df7
commit
36c410592d
577 changed files with 836 additions and 831 deletions
|
@ -88,7 +88,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
#ifdef RGB_MATRIX_ENABLE
|
||||
|
||||
/* ws2812 RGB MATRIX */
|
||||
# define DRIVER_LED_TOTAL 116
|
||||
# define RGB_MATRIX_LED_COUNT 116
|
||||
|
||||
// reacts to keypresses
|
||||
# define RGB_MATRIX_KEYPRESSES
|
||||
|
|
|
@ -42,7 +42,7 @@ bool my_solid_reactive_col(effect_params_t* params) {
|
|||
RGB rgb = rgb_matrix_hsv_to_rgb(hsv);
|
||||
rgb_matrix_set_color(i, rgb.r, rgb.g, rgb.b);
|
||||
}
|
||||
return led_max < DRIVER_LED_TOTAL;
|
||||
return led_max < RGB_MATRIX_LED_COUNT;
|
||||
}
|
||||
|
||||
bool my_party_rocks(effect_params_t* params) {
|
||||
|
@ -51,7 +51,7 @@ bool my_party_rocks(effect_params_t* params) {
|
|||
RGB rgb = rgb_matrix_hsv_to_rgb(hsv);
|
||||
// rgb_matrix_set_color(i, rgb.r, rgb.g, rgb.b);
|
||||
rgb_matrix_set_color_all(rgb.r, rgb.g, rgb.b);
|
||||
return led_max < DRIVER_LED_TOTAL;
|
||||
return led_max < RGB_MATRIX_LED_COUNT;
|
||||
}
|
||||
|
||||
# endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue