Program code mismatched with the circuit diagram
Opened this issue · 3 comments
shaminolai commented
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].
jfoucher commented
Thanks for the report, I'll try and take a look at it soon. It is possible that the code and schematic are out of sync...
shaminolai commented
For the 2nd issue, I tried to fix with PIN_BASE = 0. And make changes to rgb arrage to B2B3R3 format and it works.
Your project is so great for me to learn PICO! Great work!
shaminolai commented
After more study and experiments made, I guess PIN 0 and PIN 1 are for stdio (standard I/O, serial in/out for debugging). So, it needs to change the program for GIO assignment rather than the circuit diagram.