There are a few issues found: - PICO_SCANVIDEO_COLOR_PIN_BASE is set to 2 but the circuit diagram is 0. - In the circuit diagram, bits in a video byte is R3 G3 B2. But some of the program code is R3 G2 B3 (rgb[0] to rgb[8]) or B3 G2 R3 (rgb[9]-rgb[15].
There are a few issues found: