File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 7
7
8
8
#include <string.h>
9
9
#include "pico.h"
10
- #include "hardware/uart.h"
11
10
#include "hardware/gpio.h"
12
- #include "hardware/divider.h"
13
11
#include "spans.h"
14
12
#include "pico/scanvideo.h"
15
13
#include "pico/scanvideo/composable_scanline.h"
@@ -421,12 +419,13 @@ int vga_main(void) {
421
419
#endif
422
420
#ifndef IRQS_ON_CORE1
423
421
setup_video ();
422
+ #else
423
+ sem_acquire_blocking (& video_setup_complete );
424
424
#endif
425
425
#ifdef RENDER_ON_CORE0
426
426
render_loop ();
427
427
#else
428
428
429
- sem_acquire (& video_setup_complete );
430
429
while (true) {
431
430
#ifndef TEST_WAIT_FOR_SCANLINE
432
431
// Just use vblank to print out a value every second
@@ -439,7 +438,7 @@ int vga_main(void) {
439
438
#else
440
439
static uint32_t sl = 0 ;
441
440
sl = scanvideo_wait_for_scanline_complete (sl );
442
- scanline_color = (scanline_color + 0x10u ) & 0xffu ;
441
+ scanline_color = (scanline_color + 1 ) & 0x1fu ;
443
442
#endif
444
443
}
445
444
#endif
@@ -554,7 +553,7 @@ bool render_scanline_test_pattern(struct scanvideo_scanline_buffer *dest, int co
554
553
#ifndef TEST_WAIT_FOR_SCANLINE
555
554
uint16_t c = 0xffff ;
556
555
#else
557
- uint16_t c = 0x0421 * ( scanline_color >> 4 ) ;
556
+ uint16_t c = PICO_SCANVIDEO_PIXEL_FROM_RGB5 ( 1 , 1 , 1 ) * scanline_color ;
558
557
#endif
559
558
if (w == 1 ) {
560
559
buf16 [pos ++ ] = COMPOSABLE_RAW_1P ;
You can’t perform that action at this time.
0 commit comments