Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Program code mismatched with the circuit diagram #7

Open
shaminolai opened this issue Sep 2, 2022 · 3 comments
Open

Program code mismatched with the circuit diagram #7

shaminolai opened this issue Sep 2, 2022 · 3 comments

Comments

@shaminolai
Copy link

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
Copy link
Owner

jfoucher commented Sep 5, 2022

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
Copy link
Author

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
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants