-
Notifications
You must be signed in to change notification settings - Fork 32
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
VGA Library #19
Comments
Note that there is a released/unreleased part of Pico SDK, which actually contains support for PIO bitbanged VGA and it is available here: https://github.com/raspberrypi/pico-extras/ There are even examples in pico playground repository so you can get the basic picture on how to use the library and it is even rather extensively documented (so you can understand how it works). |
@Martius108 if you haven't gone the route suggested by @ventZl then yes it should be straightforward enough to reuse the video code elsewhere. I'd wanted to do the same so designed it to be reusable. In Include the following files in your project:
In your CMakeLists.txt add Now, make a frame buffer somewhere: a global The resolution is tuned to the Mac of course. Try changing the The order of bits/bytes in the framebuffer is odd -- if you write a native program it'll be awkward. It's that way because the Mac is big endian. The DMA swaps bytes and the PIO shifts bits out top down. So, try:
HTH! |
Just to confirm it works out of the box (the latest pico-mac revision supports VGA resolution, and simply redefines |
Thank you. I will try this out. |
Hi,
I got this project running without problems. I hardwired the half of a VGA cable to a breadboard with the Pico. Now I’d like to make a new project - a Pong game. The code is not difficult, there are lot of examples out here. But I need a kind of VGA library. So my question is which part of this project is the VGA library and how can I implement it into the new project?
thanks
Martin
The text was updated successfully, but these errors were encountered: