Projects

Pong Version 2 and vgalib for ChipKIT

Last updated: May 27, 2012, 12:19 p.m.

I've finally got around to making the VGA driver into a library that doesn't require all that messy interrupt code in the main sketch. The actual operation is along the lines of the pixel based display used in the life games but I've re-implemented Pong with this new library as a test.

The schematic for the pong demo is the same as the original. The main code is much simplified by the interface that the library gives. I've added a count down to the start and a game over screen which has a QR code that links here. The example shows off all the methods currently available in the library.

The source code is in the examples folder of the VGA library along with some python scripts that were used to generate the bitmaps for the blit operations that generate the final game screen.

All the source and library are maintained on GitHub vgalib.

Section:
Projects
Tags:
ChipKit,
arduino,
VGA,
library

Comments

Posting comments is not currently possible. If you want to discuss this article you can reach me on twitter or via email.


Contact

Email: nathan@nathandumont.com

Mastodon: @hairymnstr@mastodon.social