@@ -608,9 +608,8 @@ static void vfx_task_handle(void *pvParameter)
608
608
uint16_t color_ctr = vfx_ctr ;
609
609
float fft_amp [64 ] = {0 };
610
610
const uint16_t fft_n = 128 ;
611
- GDisplay * g = gdispGetDisplay (0 );
612
- coord_t disp_width = gdispGGetWidth (g );
613
- coord_t disp_height = gdispGGetHeight (g );
611
+ coord_t disp_width = 64 ;
612
+ coord_t disp_height = 8 ;
614
613
615
614
fft_config_t * fft_plan = fft_init (fft_n , FFT_REAL , FFT_FORWARD , NULL , NULL );
616
615
while (1 ) {
@@ -683,15 +682,14 @@ static void vfx_task_handle(void *pvParameter)
683
682
case 0x0E : { // 音频FFT 横排彩虹(流动)
684
683
uint8_t x = 0 ;
685
684
uint8_t y = 0 ;
686
- uint8_t color_cnt = 0 ;
685
+ uint8_t color_cnt = 0 ;
687
686
uint16_t color_tmp = 0 ;
688
687
uint16_t color_idx = 0 ;
689
688
uint16_t color_ctr = vfx_ctr ;
690
689
float fft_amp [64 ] = {0 };
691
690
const uint16_t fft_n = 128 ;
692
- GDisplay * g = gdispGetDisplay (0 );
693
- coord_t disp_width = gdispGGetWidth (g );
694
- coord_t disp_height = gdispGGetHeight (g );
691
+ coord_t disp_width = 64 ;
692
+ coord_t disp_height = 8 ;
695
693
696
694
fft_config_t * fft_plan = fft_init (fft_n , FFT_REAL , FFT_FORWARD , NULL , NULL );
697
695
while (1 ) {
@@ -791,9 +789,8 @@ static void vfx_task_handle(void *pvParameter)
791
789
0 , 0 , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 7 , 7 , 7 , 7 , 7 , 7 , 7 ,
792
790
}
793
791
};
794
- GDisplay * g = gdispGetDisplay (0 );
795
- coord_t disp_width = gdispGGetWidth (g );
796
- coord_t disp_height = gdispGGetHeight (g );
792
+ coord_t disp_width = 64 ;
793
+ coord_t disp_height = 8 ;
797
794
798
795
for (uint16_t i = 0 ; i < 64 ; i ++ ) {
799
796
color_idx [i ] = i * 8 ;
0 commit comments