Brick Break Game

This is a simple brick break game that uses images from the SD card and loads them on the uLCD. The input devices to control the game is the potentiometer (to control the player) and the joystick to control other game functoins.

Schematic

uLCD and SD card

mbeduLCD HeaderuLCD Cable
5V=VU5V5V
GndGndGnd
TX=p9RXTX
RX=p10TXRX
p11ResetReset

Potentiometer

mbedPotentiometer
gnd-
VCC+
p20Input

Sparkfun 5-Way Tactile Switch Breakout

mbedBreakout Board
gnd-
VCC+
p14C
p13R
p12L

Setup

/media/uploads/brianeason92/img_1370_rotated.jpg

Gameplay Example

Press Fire on the Sparkfun breakout board to start the game. Use the potentiometer to control the player. If a ball gets stuck in the same pattern, toggle the Sparkfun board left or right to change the trajectory.

Code

Import programBrickBreak

Lab 4 Project


Please log in to post comments.