@@ -132,7 +132,7 @@ static void vfx_task(void *pvParameter)
132
132
133
133
xEventGroupClearBits (user_event_group , VFX_FFT_NULL_BIT );
134
134
135
- gdispGClear (vfx_gdisp , 0x000000 );
135
+ gdispGClear (vfx_gdisp , Black );
136
136
gtimerJab (& vfx_flush_timer );
137
137
138
138
gdispGSetBacklight (vfx_gdisp , vfx .backlight );
@@ -201,7 +201,7 @@ static void vfx_task(void *pvParameter)
201
201
uint16_t fill_cy = fft_out [i ];
202
202
#endif
203
203
204
- gdispGFillArea (vfx_gdisp , clear_x , clear_y , clear_cx , clear_cy , 0x000000 );
204
+ gdispGFillArea (vfx_gdisp , clear_x , clear_y , clear_cx , clear_cy , Black );
205
205
gdispGFillArea (vfx_gdisp , fill_x , fill_y , fill_cx , fill_cy , pixel_color );
206
206
207
207
if (++ color_h == 512 ) {
@@ -236,7 +236,7 @@ static void vfx_task(void *pvParameter)
236
236
237
237
xEventGroupClearBits (user_event_group , VFX_FFT_NULL_BIT );
238
238
239
- gdispGClear (vfx_gdisp , 0x000000 );
239
+ gdispGClear (vfx_gdisp , Black );
240
240
gtimerJab (& vfx_flush_timer );
241
241
242
242
gdispGSetBacklight (vfx_gdisp , vfx .backlight );
@@ -305,7 +305,7 @@ static void vfx_task(void *pvParameter)
305
305
uint16_t fill_cy = fft_out [i ];
306
306
#endif
307
307
308
- gdispGFillArea (vfx_gdisp , clear_x , clear_y , clear_cx , clear_cy , 0x000000 );
308
+ gdispGFillArea (vfx_gdisp , clear_x , clear_y , clear_cx , clear_cy , Black );
309
309
gdispGFillArea (vfx_gdisp , fill_x , fill_y , fill_cx , fill_cy , pixel_color );
310
310
311
311
if ((color_h += 8 ) == 512 ) {
@@ -356,7 +356,7 @@ static void vfx_task(void *pvParameter)
356
356
357
357
xEventGroupClearBits (user_event_group , VFX_FFT_NULL_BIT );
358
358
359
- gdispGClear (vfx_gdisp , 0x000000 );
359
+ gdispGClear (vfx_gdisp , Black );
360
360
gtimerJab (& vfx_flush_timer );
361
361
362
362
gdispGSetBacklight (vfx_gdisp , vfx .backlight );
@@ -423,7 +423,7 @@ static void vfx_task(void *pvParameter)
423
423
vu_peak_delay [i ] = vu_peak_delay_init - 1 + vu_peak_delay [i ] % vu_drop_delay_init ;
424
424
}
425
425
if (vu_peak_value [i ] != vu_val_out ) {
426
- gdispGFillArea (vfx_gdisp , i * vu_width + 1 , (vu_val_max - vu_peak_value [i ])* vu_height + 1 , vu_width - 2 , vu_height - 2 , 0x000000 );
426
+ gdispGFillArea (vfx_gdisp , i * vu_width + 1 , (vu_val_max - vu_peak_value [i ])* vu_height + 1 , vu_width - 2 , vu_height - 2 , Black );
427
427
}
428
428
429
429
uint32_t peak_color = vfx_get_color (432 , color_l );
@@ -438,7 +438,7 @@ static void vfx_task(void *pvParameter)
438
438
}
439
439
440
440
if (j > vu_val_out || ((j == 0 ) && (vu_val_out == 0 ))) { // Upside
441
- gdispGFillArea (vfx_gdisp , i * vu_width + 1 , (vu_val_max - j )* vu_height + 1 , vu_width - 2 , vu_height - 2 , 0x000000 );
441
+ gdispGFillArea (vfx_gdisp , i * vu_width + 1 , (vu_val_max - j )* vu_height + 1 , vu_width - 2 , vu_height - 2 , Black );
442
442
} else { // Underside
443
443
gdispGFillArea (vfx_gdisp , i * vu_width + 1 , (vu_val_max - j )* vu_height + 1 , vu_width - 2 , vu_height - 2 , pixel_color );
444
444
}
@@ -470,7 +470,7 @@ static void vfx_task(void *pvParameter)
470
470
471
471
xEventGroupClearBits (user_event_group , VFX_FFT_NULL_BIT );
472
472
473
- gdispGClear (vfx_gdisp , 0x000000 );
473
+ gdispGClear (vfx_gdisp , Black );
474
474
gtimerJab (& vfx_flush_timer );
475
475
476
476
gdispGSetBacklight (vfx_gdisp , vfx .backlight );
@@ -541,8 +541,8 @@ static void vfx_task(void *pvParameter)
541
541
uint16_t fill_cy = fft_out [i ] * 2 + 1 ;
542
542
#endif
543
543
544
- gdispGFillArea (vfx_gdisp , clear_x , clear_u_y , clear_cx , clear_cy , 0x000000 );
545
- gdispGFillArea (vfx_gdisp , clear_x , clear_d_y , clear_cx , clear_cy , 0x000000 );
544
+ gdispGFillArea (vfx_gdisp , clear_x , clear_u_y , clear_cx , clear_cy , Black );
545
+ gdispGFillArea (vfx_gdisp , clear_x , clear_d_y , clear_cx , clear_cy , Black );
546
546
gdispGFillArea (vfx_gdisp , fill_x , fill_y , fill_cx , fill_cy , pixel_color );
547
547
548
548
if (++ color_h == 512 ) {
@@ -578,7 +578,7 @@ static void vfx_task(void *pvParameter)
578
578
579
579
xEventGroupClearBits (user_event_group , VFX_FFT_NULL_BIT );
580
580
581
- gdispGClear (vfx_gdisp , 0x000000 );
581
+ gdispGClear (vfx_gdisp , Black );
582
582
gtimerJab (& vfx_flush_timer );
583
583
584
584
gdispGSetBacklight (vfx_gdisp , vfx .backlight );
@@ -649,8 +649,8 @@ static void vfx_task(void *pvParameter)
649
649
uint16_t fill_cy = fft_out [i ] * 2 + 1 ;
650
650
#endif
651
651
652
- gdispGFillArea (vfx_gdisp , clear_x , clear_u_y , clear_cx , clear_cy , 0x000000 );
653
- gdispGFillArea (vfx_gdisp , clear_x , clear_d_y , clear_cx , clear_cy , 0x000000 );
652
+ gdispGFillArea (vfx_gdisp , clear_x , clear_u_y , clear_cx , clear_cy , Black );
653
+ gdispGFillArea (vfx_gdisp , clear_x , clear_d_y , clear_cx , clear_cy , Black );
654
654
gdispGFillArea (vfx_gdisp , fill_x , fill_y , fill_cx , fill_cy , pixel_color );
655
655
656
656
if ((color_h += 8 ) == 512 ) {
@@ -701,7 +701,7 @@ static void vfx_task(void *pvParameter)
701
701
702
702
xEventGroupClearBits (user_event_group , VFX_FFT_NULL_BIT );
703
703
704
- gdispGClear (vfx_gdisp , 0x000000 );
704
+ gdispGClear (vfx_gdisp , Black );
705
705
gtimerJab (& vfx_flush_timer );
706
706
707
707
gdispGSetBacklight (vfx_gdisp , vfx .backlight );
@@ -768,7 +768,7 @@ static void vfx_task(void *pvParameter)
768
768
vu_peak_delay [i ] = vu_peak_delay_init - 1 + vu_peak_delay [i ] % vu_drop_delay_init ;
769
769
}
770
770
if (vu_peak_value [i ] != vu_val_out ) {
771
- gdispGFillArea (vfx_gdisp , i * vu_width + 1 , (vu_val_max - vu_peak_value [i ])* vu_height + 1 , vu_width - 2 , vu_height - 2 , 0x000000 );
771
+ gdispGFillArea (vfx_gdisp , i * vu_width + 1 , (vu_val_max - vu_peak_value [i ])* vu_height + 1 , vu_width - 2 , vu_height - 2 , Black );
772
772
}
773
773
774
774
uint32_t peak_color = vfx_get_color (432 , color_l );
@@ -783,7 +783,7 @@ static void vfx_task(void *pvParameter)
783
783
}
784
784
785
785
if (j > vu_val_out || ((j == 0 ) && (vu_val_out == 0 ))) { // Upside
786
- gdispGFillArea (vfx_gdisp , i * vu_width + 1 , (vu_val_max - j )* vu_height + 1 , vu_width - 2 , vu_height - 2 , 0x000000 );
786
+ gdispGFillArea (vfx_gdisp , i * vu_width + 1 , (vu_val_max - j )* vu_height + 1 , vu_width - 2 , vu_height - 2 , Black );
787
787
} else { // Underside
788
788
gdispGFillArea (vfx_gdisp , i * vu_width + 1 , (vu_val_max - j )* vu_height + 1 , vu_width - 2 , vu_height - 2 , pixel_color );
789
789
}
@@ -967,7 +967,7 @@ static void vfx_task(void *pvParameter)
967
967
float color_l = vfx .lightness / 256.0 ;
968
968
const uint16_t flush_period = 8 ;
969
969
970
- gdispGClear (vfx_gdisp , 0x000000 );
970
+ gdispGClear (vfx_gdisp , Black );
971
971
gtimerJab (& vfx_flush_timer );
972
972
973
973
for (uint16_t i = 0 ; i < 512 ; i ++ ) {
@@ -1034,7 +1034,7 @@ static void vfx_task(void *pvParameter)
1034
1034
float color_l = vfx .lightness / 256.0 ;
1035
1035
const uint16_t flush_period = 8 ;
1036
1036
1037
- gdispGClear (vfx_gdisp , 0x000000 );
1037
+ gdispGClear (vfx_gdisp , Black );
1038
1038
gtimerJab (& vfx_flush_timer );
1039
1039
1040
1040
for (uint16_t i = 0 ; i < 512 ; i ++ ) {
@@ -1101,7 +1101,7 @@ static void vfx_task(void *pvParameter)
1101
1101
float color_l = vfx .lightness / 256.0 ;
1102
1102
const uint16_t flush_period = 8 ;
1103
1103
1104
- gdispGClear (vfx_gdisp , 0x000000 );
1104
+ gdispGClear (vfx_gdisp , Black );
1105
1105
gtimerJab (& vfx_flush_timer );
1106
1106
1107
1107
for (uint16_t i = 0 ; i < 512 ; i ++ ) {
@@ -1165,7 +1165,7 @@ static void vfx_task(void *pvParameter)
1165
1165
uint16_t color_l = vfx .lightness ;
1166
1166
const uint16_t flush_period = 1000 ;
1167
1167
1168
- gdispGClear (vfx_gdisp , 0x000000 );
1168
+ gdispGClear (vfx_gdisp , Black );
1169
1169
gtimerJab (& vfx_flush_timer );
1170
1170
1171
1171
while (1 ) {
@@ -1203,7 +1203,7 @@ static void vfx_task(void *pvParameter)
1203
1203
uint16_t color_l = vfx .lightness ;
1204
1204
const uint16_t flush_period = 80 ;
1205
1205
1206
- gdispGClear (vfx_gdisp , 0x000000 );
1206
+ gdispGClear (vfx_gdisp , Black );
1207
1207
gtimerJab (& vfx_flush_timer );
1208
1208
1209
1209
while (1 ) {
@@ -1261,7 +1261,7 @@ static void vfx_task(void *pvParameter)
1261
1261
uint16_t frame_idx = 0 ;
1262
1262
const uint16_t flush_period = 16 ;
1263
1263
1264
- gdispGClear (vfx_gdisp , 0x000000 );
1264
+ gdispGClear (vfx_gdisp , Black );
1265
1265
gtimerJab (& vfx_flush_timer );
1266
1266
1267
1267
while (1 ) {
@@ -1289,7 +1289,7 @@ static void vfx_task(void *pvParameter)
1289
1289
uint16_t frame_idx = 0 ;
1290
1290
const uint16_t flush_period = 40 ;
1291
1291
1292
- gdispGClear (vfx_gdisp , 0x000000 );
1292
+ gdispGClear (vfx_gdisp , Black );
1293
1293
gtimerJab (& vfx_flush_timer );
1294
1294
1295
1295
while (1 ) {
@@ -1326,7 +1326,7 @@ static void vfx_task(void *pvParameter)
1326
1326
uint16_t frame_idx = 0 ;
1327
1327
const uint16_t flush_period = 40 ;
1328
1328
1329
- gdispGClear (vfx_gdisp , 0x000000 );
1329
+ gdispGClear (vfx_gdisp , Black );
1330
1330
gtimerJab (& vfx_flush_timer );
1331
1331
1332
1332
while (1 ) {
@@ -1372,7 +1372,7 @@ static void vfx_task(void *pvParameter)
1372
1372
1373
1373
xEventGroupClearBits (user_event_group , VFX_FFT_NULL_BIT );
1374
1374
1375
- gdispGClear (vfx_gdisp , 0x000000 );
1375
+ gdispGClear (vfx_gdisp , Black );
1376
1376
gtimerJab (& vfx_flush_timer );
1377
1377
1378
1378
memset (vfx_fft_input , 0x00 , sizeof (vfx_fft_input ));
@@ -1475,7 +1475,7 @@ static void vfx_task(void *pvParameter)
1475
1475
1476
1476
xEventGroupClearBits (user_event_group , VFX_FFT_NULL_BIT );
1477
1477
1478
- gdispGClear (vfx_gdisp , 0x000000 );
1478
+ gdispGClear (vfx_gdisp , Black );
1479
1479
gtimerJab (& vfx_flush_timer );
1480
1480
1481
1481
memset (vfx_fft_input , 0x00 , sizeof (vfx_fft_input ));
@@ -1599,7 +1599,7 @@ static void vfx_task(void *pvParameter)
1599
1599
1600
1600
xEventGroupClearBits (user_event_group , VFX_FFT_NULL_BIT );
1601
1601
1602
- gdispGClear (vfx_gdisp , 0x000000 );
1602
+ gdispGClear (vfx_gdisp , Black );
1603
1603
gtimerJab (& vfx_flush_timer );
1604
1604
1605
1605
for (uint16_t i = 0 ; i < 64 ; i ++ ) {
@@ -1709,7 +1709,7 @@ static void vfx_task(void *pvParameter)
1709
1709
1710
1710
xEventGroupClearBits (user_event_group , VFX_FFT_NULL_BIT );
1711
1711
1712
- gdispGClear (vfx_gdisp , 0x000000 );
1712
+ gdispGClear (vfx_gdisp , Black );
1713
1713
gtimerJab (& vfx_flush_timer );
1714
1714
1715
1715
memset (vfx_fft_input , 0x00 , sizeof (vfx_fft_input ));
@@ -1812,7 +1812,7 @@ static void vfx_task(void *pvParameter)
1812
1812
1813
1813
xEventGroupClearBits (user_event_group , VFX_FFT_NULL_BIT );
1814
1814
1815
- gdispGClear (vfx_gdisp , 0x000000 );
1815
+ gdispGClear (vfx_gdisp , Black );
1816
1816
gtimerJab (& vfx_flush_timer );
1817
1817
1818
1818
memset (vfx_fft_input , 0x00 , sizeof (vfx_fft_input ));
@@ -1936,7 +1936,7 @@ static void vfx_task(void *pvParameter)
1936
1936
1937
1937
xEventGroupClearBits (user_event_group , VFX_FFT_NULL_BIT );
1938
1938
1939
- gdispGClear (vfx_gdisp , 0x000000 );
1939
+ gdispGClear (vfx_gdisp , Black );
1940
1940
gtimerJab (& vfx_flush_timer );
1941
1941
1942
1942
for (uint16_t i = 0 ; i < 64 ; i ++ ) {
@@ -2049,7 +2049,7 @@ static void vfx_task(void *pvParameter)
2049
2049
2050
2050
vTaskDelay (500 / portTICK_RATE_MS );
2051
2051
2052
- gdispGClear (vfx_gdisp , 0x000000 );
2052
+ gdispGClear (vfx_gdisp , Black );
2053
2053
gtimerJab (& vfx_flush_timer );
2054
2054
2055
2055
xEventGroupWaitBits (
0 commit comments