Skip to content

A functioning Pong game written in C, made for the ATMEGA1284P and an 8x8 LED matrix.

Notifications You must be signed in to change notification settings

ben-denzler/LED-Matrix-Pong

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LED Matrix Pong

Author: Benjamin Denzler

Project Description

This is a fully-functioning Pong game running on a microcontroller with an LED matrix! The entire game is written in C, and I programmed an ATMEGA1284P microcontroller using UCR's AVR Toolchain. The microcontroller takes input from several buttons and a potentiometer, and outputs to an 8x8 LED matrix and stand-alone LEDs.

The game has the following features:

  • Complete ball physics: paddle center bounces straight, paddle edges bounce at an angle
  • Changing ball speeds depending on where the ball is hit
  • Single-player mode with a simple AI, player uses buttons
  • Two-player mode that disables the AI, second player uses a potentiometer
  • Seamless switching between single and two-player modes
  • Score counter for each player (LEDs)
  • Winning conditions: first to three wins, and the game is reset
  • Reset button to clear the ball's position and proceed to next round

The following hardware was used for this project:

Demo Video

See a demo of my game by clicking on the video below!

LED Matrix Pong Demo

About

A functioning Pong game written in C, made for the ATMEGA1284P and an 8x8 LED matrix.

Resources

Stars

Watchers

Forks