Categories

Tetris on a 16×8 LED matrix display

Posted on Wednesday, June 13th, 2012 in project logs by DP

Graham designed a portable Tetris game on a PIC18F4520. It uses two 8×8 LED matrices as a display, and 4 buttons for control:

The 64 LEDs and four buttons are controlled by a single PIC (18LF4520) and two AA batteries. The source code operates very efficiently, and the program is extremely responsive. I was worried about the latter as I was determined to use algorithm based graphic rotations as compared to predefined constants. From here I could use a similar approach to create other interactive games!

This entry was posted on Wednesday, June 13th, 2012 at 3:30 pm and is filed under project logs. You can follow any responses to this entry through the RSS 2.0 feed. You can skip to the end and leave a response. Pinging is currently not allowed.

3 Responses to “Tetris on a 16×8 LED matrix display”

  1. exapod says:

    Awesome, i will try to port the code for my matrix display http://dangerousprototypes.com/forum/viewtopic.php?f=56&t=4146

  2. vimark says:

    Thumbs up!

Leave a Reply

Notify me of followup comments via e-mail. You can also subscribe without commenting.

Recent Comments

  • KH: Really? They are digital inputs driven by an MCU. The MCU GPIO probably has diode clamps and ESD protection. Have you experienced such failures? Please...
  • KH: Neither. Google "Marco Schweighauser’s 8-bit virtual Javascript CPU" and see the first result. Sounds more like a very limited feature toy CPU.
  • Alan: "8-bit x86 like CPU" - isn't that an 8080, or Z80?
  • Geoff: Is it still Sunday somewhere? If so, yes please.
  • hli: Sunday++