mirror of
https://github.com/firewalkwithm3/qmk_firmware.git
synced 2024-11-22 11:30:30 +08:00
Set minimum middle column value (#21365)
This commit is contained in:
parent
43350c347d
commit
0035ed6762
|
@ -7,7 +7,11 @@ RGB_MATRIX_EFFECT(PIXEL_FRACTAL)
|
||||||
# ifdef RGB_MATRIX_CUSTOM_EFFECT_IMPLS
|
# ifdef RGB_MATRIX_CUSTOM_EFFECT_IMPLS
|
||||||
|
|
||||||
static bool PIXEL_FRACTAL(effect_params_t* params) {
|
static bool PIXEL_FRACTAL(effect_params_t* params) {
|
||||||
# define MID_COL MATRIX_COLS / 2
|
# if MATRIX_COLS < 2
|
||||||
|
# define MID_COL 1
|
||||||
|
# else
|
||||||
|
# define MID_COL MATRIX_COLS / 2
|
||||||
|
# endif
|
||||||
static bool led[MATRIX_ROWS][MID_COL];
|
static bool led[MATRIX_ROWS][MID_COL];
|
||||||
static uint32_t wait_timer = 0;
|
static uint32_t wait_timer = 0;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue