@@ -258,7 +258,7 @@ static void vfx_task(void *pvParameter)
258258 }
259259 }
260260
261- color_h = 511 ;
261+ color_h = 0 ;
262262 for (uint16_t i = 0 ; i < vfx_disp_width ; i ++ ) {
263263 uint32_t pixel_color = vfx_get_color (color_h , color_l );
264264
@@ -287,8 +287,8 @@ static void vfx_task(void *pvParameter)
287287 gdispGFillArea (vfx_gdisp , clear_x , clear_y , clear_cx , clear_cy , 0x000000 );
288288 gdispGFillArea (vfx_gdisp , fill_x , fill_y , fill_cx , fill_cy , pixel_color );
289289
290- if ((color_h - = 8 ) == 7 ) {
291- color_h = 511 ;
290+ if ((color_h + = 8 ) == 512 ) {
291+ color_h = 0 ;
292292 }
293293 }
294294
@@ -401,10 +401,10 @@ static void vfx_task(void *pvParameter)
401401 gdispGFillArea (vfx_gdisp , i * vu_width + 1 , (vu_val_max - vu_peak_value [i ])* vu_height + 1 , vu_width - 2 , vu_height - 2 , 0x000000 );
402402 }
403403
404- uint32_t peak_color = vfx_get_color (80 , color_l );
404+ uint32_t peak_color = vfx_get_color (432 , color_l );
405405 gdispGFillArea (vfx_gdisp , i * vu_width + 1 , (vu_val_max - vu_peak_value [i ])* vu_height + 1 , vu_width - 2 , vu_height - 2 , peak_color );
406406
407- color_h = 511 ;
407+ color_h = 0 ;
408408 for (int8_t j = vu_val_max ; j >=vu_val_min ; j -- ) {
409409 uint32_t pixel_color = vfx_get_color (color_h , color_l );
410410
@@ -418,7 +418,7 @@ static void vfx_task(void *pvParameter)
418418 gdispGFillArea (vfx_gdisp , i * vu_width + 1 , (vu_val_max - j )* vu_height + 1 , vu_width - 2 , vu_height - 2 , pixel_color );
419419 }
420420
421- color_h - = vu_step ;
421+ color_h + = vu_step ;
422422 }
423423 }
424424
@@ -588,7 +588,7 @@ static void vfx_task(void *pvParameter)
588588 }
589589 }
590590
591- color_h = 511 ;
591+ color_h = 0 ;
592592 for (uint16_t i = 0 ; i < vfx_disp_width ; i ++ ) {
593593 uint32_t pixel_color = vfx_get_color (color_h , color_l );
594594
@@ -620,7 +620,7 @@ static void vfx_task(void *pvParameter)
620620 gdispGFillArea (vfx_gdisp , clear_x , clear_d_y , clear_cx , clear_cy , 0x000000 );
621621 gdispGFillArea (vfx_gdisp , fill_x , fill_y , fill_cx , fill_cy , pixel_color );
622622
623- if ((color_h - = 8 ) == 7 ) {
623+ if ((color_h + = 8 ) == 512 ) {
624624 color_h = 511 ;
625625 }
626626 }
@@ -734,10 +734,10 @@ static void vfx_task(void *pvParameter)
734734 gdispGFillArea (vfx_gdisp , i * vu_width + 1 , (vu_val_max - vu_peak_value [i ])* vu_height + 1 , vu_width - 2 , vu_height - 2 , 0x000000 );
735735 }
736736
737- uint32_t peak_color = vfx_get_color (80 , color_l );
737+ uint32_t peak_color = vfx_get_color (432 , color_l );
738738 gdispGFillArea (vfx_gdisp , i * vu_width + 1 , (vu_val_max - vu_peak_value [i ])* vu_height + 1 , vu_width - 2 , vu_height - 2 , peak_color );
739739
740- color_h = 511 ;
740+ color_h = 0 ;
741741 for (int8_t j = vu_val_max ; j >=vu_val_min ; j -- ) {
742742 uint32_t pixel_color = vfx_get_color (color_h , color_l );
743743
@@ -751,7 +751,7 @@ static void vfx_task(void *pvParameter)
751751 gdispGFillArea (vfx_gdisp , i * vu_width + 1 , (vu_val_max - j )* vu_height + 1 , vu_width - 2 , vu_height - 2 , pixel_color );
752752 }
753753
754- color_h - = vu_step ;
754+ color_h + = vu_step ;
755755 }
756756 }
757757
@@ -930,7 +930,7 @@ static void vfx_task(void *pvParameter)
930930
931931 for (uint16_t i = 0 ; i <=511 ; i ++ ) {
932932 led_idx [i ] = i ;
933- color_h [i ] = i % 80 ;
933+ color_h [i ] = i % 80 + 432 ;
934934 }
935935
936936 for (uint16_t i = 0 ; i <=511 ; i ++ ) {
@@ -995,7 +995,7 @@ static void vfx_task(void *pvParameter)
995995
996996 for (uint16_t i = 0 ; i <=511 ; i ++ ) {
997997 led_idx [i ] = i ;
998- color_h [i ] = i % 85 + 345 ;
998+ color_h [i ] = i % 85 + 80 ;
999999 }
10001000
10011001 for (uint16_t i = 0 ; i <=511 ; i ++ ) {
@@ -1060,7 +1060,7 @@ static void vfx_task(void *pvParameter)
10601060
10611061 for (uint16_t i = 0 ; i <=511 ; i ++ ) {
10621062 led_idx [i ] = i ;
1063- color_h [i ] = i % 80 + 170 ;
1063+ color_h [i ] = i % 80 + 260 ;
10641064 }
10651065
10661066 for (uint16_t i = 0 ; i <=511 ; i ++ ) {
@@ -1355,7 +1355,7 @@ static void vfx_task(void *pvParameter)
13551355 }
13561356 }
13571357
1358- color_h = 511 ;
1358+ color_h = 0 ;
13591359 for (uint16_t i = 0 ; i < canvas_width ; i ++ ) {
13601360 uint8_t clear_x = x ;
13611361 uint8_t clear_cx = 1 ;
@@ -1385,8 +1385,8 @@ static void vfx_task(void *pvParameter)
13851385 }
13861386 }
13871387
1388- if ((color_h - = 8 ) == 7 ) {
1389- color_h = 511 ;
1388+ if ((color_h + = 8 ) == 512 ) {
1389+ color_h = 0 ;
13901390 }
13911391 }
13921392
@@ -1609,8 +1609,8 @@ static void vfx_task(void *pvParameter)
16091609 color_h [i ], color_l [i ]);
16101610
16111611 if (color_flg ) {
1612- if (color_h [i ]-- == 0 ) {
1613- color_h [i ] = 511 ;
1612+ if (color_h [i ]++ == 511 ) {
1613+ color_h [i ] = 0 ;
16141614 }
16151615 }
16161616 }
@@ -1686,7 +1686,7 @@ static void vfx_task(void *pvParameter)
16861686 }
16871687 }
16881688
1689- color_h = 511 ;
1689+ color_h = 0 ;
16901690 for (uint16_t i = 0 ; i < canvas_width ; i ++ ) {
16911691 uint8_t clear_x = x ;
16921692 uint8_t clear_cx = 1 ;
@@ -1716,8 +1716,8 @@ static void vfx_task(void *pvParameter)
17161716 }
17171717 }
17181718
1719- if ((color_h - = 8 ) == 7 ) {
1720- color_h = 511 ;
1719+ if ((color_h + = 8 ) == 512 ) {
1720+ color_h = 0 ;
17211721 }
17221722 }
17231723
@@ -1940,8 +1940,8 @@ static void vfx_task(void *pvParameter)
19401940 color_h [i ], color_l [i ]);
19411941
19421942 if (color_flg ) {
1943- if (color_h [i ]-- == 0 ) {
1944- color_h [i ] = 511 ;
1943+ if (color_h [i ]++ == 511 ) {
1944+ color_h [i ] = 0 ;
19451945 }
19461946 }
19471947 }
0 commit comments