Format code according to conventions (#16322)
This commit is contained in:
parent
afcdd7079c
commit
63646e8906
345 changed files with 4916 additions and 3229 deletions
|
@ -29,7 +29,9 @@ static bool PIXEL_FRACTAL(effect_params_t* params) {
|
|||
return false;
|
||||
}
|
||||
|
||||
inline uint32_t interval(void) { return 3000 / scale16by8(qadd8(rgb_matrix_config.speed, 16), 16); }
|
||||
inline uint32_t interval(void) {
|
||||
return 3000 / scale16by8(qadd8(rgb_matrix_config.speed, 16), 16);
|
||||
}
|
||||
|
||||
if (params->init) {
|
||||
rgb_matrix_set_color_all(0, 0, 0);
|
||||
|
@ -37,7 +39,7 @@ static bool PIXEL_FRACTAL(effect_params_t* params) {
|
|||
|
||||
RGB rgb = rgb_matrix_hsv_to_rgb(rgb_matrix_config.hsv);
|
||||
for (uint8_t h = 0; h < MATRIX_ROWS; ++h) {
|
||||
for (uint8_t l = 0; l < MID_COL - 1; ++l) { // Light and move left columns outwards
|
||||
for (uint8_t l = 0; l < MID_COL - 1; ++l) { // Light and move left columns outwards
|
||||
if (led[h][l]) {
|
||||
rgb_matrix_set_color(g_led_config.matrix_co[h][l], rgb.r, rgb.g, rgb.b);
|
||||
} else {
|
||||
|
@ -46,7 +48,7 @@ static bool PIXEL_FRACTAL(effect_params_t* params) {
|
|||
led[h][l] = led[h][l + 1];
|
||||
}
|
||||
|
||||
for (uint8_t r = MATRIX_COLS - 1; r > MID_COL; --r) { // Light and move right columns outwards
|
||||
for (uint8_t r = MATRIX_COLS - 1; r > MID_COL; --r) { // Light and move right columns outwards
|
||||
if (led[h][r]) {
|
||||
rgb_matrix_set_color(g_led_config.matrix_co[h][r], rgb.r, rgb.g, rgb.b);
|
||||
} else {
|
||||
|
@ -74,5 +76,5 @@ static bool PIXEL_FRACTAL(effect_params_t* params) {
|
|||
wait_timer = g_rgb_timer + interval();
|
||||
return false;
|
||||
}
|
||||
# endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS
|
||||
#endif // ENABLE_RGB_MATRIX_PIXEL_FRACTAL
|
||||
# endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS
|
||||
#endif // ENABLE_RGB_MATRIX_PIXEL_FRACTAL
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue