Skip to content

nnguy072/mem_game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MEMORY GAME

Name is a work in progress.

AUTHOR

Nam Nguyen

CONTENTS

Mem game is a memory game written in C using ATMEL studios and an ATMEGA1284P. It is a game where a pattern will appear on an LED matrix and the player will have to replicate the pattern. The player uses a joystick to navigate around the LED matrix and will press a button to "draw" the pattern. The LCD screen displays the remaining time and upon completion, will notify the player if they have lost or won the game. The player wins if/when they correctly replicate all the patterns. Alternatively, the player loses if they run out of time.

Picture(s)

Board: alt tag

User Guide

Rules:

  • Draw the patterns that pop up on the screen
  • Draw all 3 and you win the game

Controls:

  • Use joystick to control the dot
  • right most button draws the dot
  • middle button clears the screen
  • left most button starts the game

COMPONENTS

Pinout:

alt tag

Input

  • Joystick
  • On/Off Button
  • Draw button
  • Clear Button

Output

  • Nokia 5110 LCD
  • 8x8 RGB LED Matrix
  • LEDs

TODO

  • Wire LED matrix
  • Get dot to travel around LED matrix
  • Wire joystick and test
  • Get joystick to move dot around LED matrix
  • Be able to draw/drop dots on the screen
  • Wire LCD and display relevant information (time, menu, etc)
  • Finish game logic
  • Make videos/upload images to youtube/github

BUGS

  • Nokia LCD5110 LCD causes half second delay when rendering
  • User drawn patterns sometimes refresh too slow causing them "blink"