@@ -112,8 +112,8 @@ static void vfx_task(void *pvParameter)
112112 uint16_t color_h = 0 ;
113113 uint16_t color_l = vfx .lightness ;
114114 fft_config_t * fft = NULL ;
115- float fft_amp [64 ] = {0 };
116- int8_t fft_out [64 ] = {0 };
115+ float fft_amp [64 ] = {0 };
116+ int16_t fft_out [64 ] = {0 };
117117
118118 xEventGroupClearBits (user_event_group , VFX_FFT_NULL_BIT );
119119
@@ -212,8 +212,8 @@ static void vfx_task(void *pvParameter)
212212 uint16_t color_h = 0 ;
213213 uint16_t color_l = vfx .lightness ;
214214 fft_config_t * fft = NULL ;
215- float fft_amp [64 ] = {0 };
216- int8_t fft_out [64 ] = {0 };
215+ float fft_amp [64 ] = {0 };
216+ int16_t fft_out [64 ] = {0 };
217217
218218 xEventGroupClearBits (user_event_group , VFX_FFT_NULL_BIT );
219219
@@ -306,8 +306,8 @@ static void vfx_task(void *pvParameter)
306306 uint16_t color_h = 0 ;
307307 uint16_t color_l = vfx .lightness ;
308308 fft_config_t * fft = NULL ;
309- float fft_amp [64 ] = {0 };
310- int8_t fft_out [64 ] = {0 };
309+ float fft_amp [64 ] = {0 };
310+ int16_t fft_out [64 ] = {0 };
311311#if defined(CONFIG_VFX_OUTPUT_ST7735 )
312312 const uint8_t vu_idx_min = 0 ;
313313 const uint8_t vu_idx_max = 19 ;
@@ -373,7 +373,7 @@ static void vfx_task(void *pvParameter)
373373 }
374374
375375 for (uint8_t i = vu_idx_min ; i <=vu_idx_max ; i ++ ) {
376- int8_t vu_val_out = fft_out [i ];
376+ int16_t vu_val_out = fft_out [i ];
377377
378378 if (vu_val_out > vu_val_max ) {
379379 vu_val_out = vu_val_max ;
@@ -425,8 +425,8 @@ static void vfx_task(void *pvParameter)
425425 uint16_t color_h = 0 ;
426426 uint16_t color_l = vfx .lightness ;
427427 fft_config_t * fft = NULL ;
428- float fft_amp [64 ] = {0 };
429- int8_t fft_out [64 ] = {0 };
428+ float fft_amp [64 ] = {0 };
429+ int16_t fft_out [64 ] = {0 };
430430 uint16_t center_y = vfx_disp_height % 2 ? vfx_disp_height / 2 : vfx_disp_height / 2 - 1 ;
431431
432432 xEventGroupClearBits (user_event_group , VFX_FFT_NULL_BIT );
@@ -529,8 +529,8 @@ static void vfx_task(void *pvParameter)
529529 uint16_t color_h = 0 ;
530530 uint16_t color_l = vfx .lightness ;
531531 fft_config_t * fft = NULL ;
532- float fft_amp [64 ] = {0 };
533- int8_t fft_out [64 ] = {0 };
532+ float fft_amp [64 ] = {0 };
533+ int16_t fft_out [64 ] = {0 };
534534 uint16_t center_y = vfx_disp_height % 2 ? vfx_disp_height / 2 : vfx_disp_height / 2 - 1 ;
535535
536536 xEventGroupClearBits (user_event_group , VFX_FFT_NULL_BIT );
@@ -627,8 +627,8 @@ static void vfx_task(void *pvParameter)
627627 uint16_t color_h = 0 ;
628628 uint16_t color_l = vfx .lightness ;
629629 fft_config_t * fft = NULL ;
630- float fft_amp [64 ] = {0 };
631- int8_t fft_out [64 ] = {0 };
630+ float fft_amp [64 ] = {0 };
631+ int16_t fft_out [64 ] = {0 };
632632#if defined(CONFIG_VFX_OUTPUT_ST7735 )
633633 const uint8_t vu_idx_min = 0 ;
634634 const uint8_t vu_idx_max = 19 ;
@@ -694,7 +694,7 @@ static void vfx_task(void *pvParameter)
694694 }
695695
696696 for (uint8_t i = vu_idx_min ; i <=vu_idx_max ; i ++ ) {
697- int8_t vu_val_out = fft_out [i ];
697+ int16_t vu_val_out = fft_out [i ];
698698
699699 if (vu_val_out > vu_val_max ) {
700700 vu_val_out = vu_val_max ;
@@ -1283,8 +1283,8 @@ static void vfx_task(void *pvParameter)
12831283 uint16_t color_h = 0 ;
12841284 uint16_t color_l = vfx .lightness ;
12851285 fft_config_t * fft = NULL ;
1286- float fft_amp [64 ] = {0 };
1287- int8_t fft_out [64 ] = {0 };
1286+ float fft_amp [64 ] = {0 };
1287+ int16_t fft_out [64 ] = {0 };
12881288 const coord_t canvas_width = 64 ;
12891289 const coord_t canvas_height = 8 ;
12901290
@@ -1384,8 +1384,8 @@ static void vfx_task(void *pvParameter)
13841384 uint16_t color_h = 0 ;
13851385 uint16_t color_l = vfx .lightness ;
13861386 fft_config_t * fft = NULL ;
1387- float fft_amp [64 ] = {0 };
1388- int8_t fft_out [64 ] = {0 };
1387+ float fft_amp [64 ] = {0 };
1388+ int16_t fft_out [64 ] = {0 };
13891389 const coord_t canvas_width = 64 ;
13901390 const coord_t canvas_height = 8 ;
13911391
@@ -1492,8 +1492,8 @@ static void vfx_task(void *pvParameter)
14921492 uint16_t color_h [64 ] = {0 };
14931493 uint16_t color_l [64 ] = {vfx .lightness };
14941494 fft_config_t * fft = NULL ;
1495- float fft_amp [64 ] = {0 };
1496- int8_t fft_out [64 ] = {0 };
1495+ float fft_amp [64 ] = {0 };
1496+ int16_t fft_out [64 ] = {0 };
14971497 const uint8_t led_idx_table [][64 ] = {
14981498 {
14991499 3 , 4 , 4 , 3 , 2 , 2 , 2 , 3 , 4 , 5 , 5 , 5 , 5 , 4 , 3 , 2 ,
@@ -1614,8 +1614,8 @@ static void vfx_task(void *pvParameter)
16141614 uint16_t color_h = 0 ;
16151615 uint16_t color_l = vfx .lightness ;
16161616 fft_config_t * fft = NULL ;
1617- float fft_amp [64 ] = {0 };
1618- int8_t fft_out [64 ] = {0 };
1617+ float fft_amp [64 ] = {0 };
1618+ int16_t fft_out [64 ] = {0 };
16191619 const coord_t canvas_width = 64 ;
16201620 const coord_t canvas_height = 8 ;
16211621
@@ -1715,8 +1715,8 @@ static void vfx_task(void *pvParameter)
17151715 uint16_t color_h = 0 ;
17161716 uint16_t color_l = vfx .lightness ;
17171717 fft_config_t * fft = NULL ;
1718- float fft_amp [64 ] = {0 };
1719- int8_t fft_out [64 ] = {0 };
1718+ float fft_amp [64 ] = {0 };
1719+ int16_t fft_out [64 ] = {0 };
17201720 const coord_t canvas_width = 64 ;
17211721 const coord_t canvas_height = 8 ;
17221722
@@ -1823,8 +1823,8 @@ static void vfx_task(void *pvParameter)
18231823 uint16_t color_h [64 ] = {0 };
18241824 uint16_t color_l [64 ] = {vfx .lightness };
18251825 fft_config_t * fft = NULL ;
1826- float fft_amp [64 ] = {0 };
1827- int8_t fft_out [64 ] = {0 };
1826+ float fft_amp [64 ] = {0 };
1827+ int16_t fft_out [64 ] = {0 };
18281828 const uint8_t led_idx_table [][64 ] = {
18291829 {
18301830 3 , 4 , 4 , 3 , 2 , 2 , 2 , 3 , 4 , 5 , 5 , 5 , 5 , 4 , 3 , 2 ,
0 commit comments