Giter Club home page Giter Club logo

tap-lights's Introduction

Tap Lights

LED game implemented and designed from cs120b class.

TECHNOLOGY/ COMPONENT:

  • AVR Studio 6.1
  • Hitachi LCD
  • ATMega1284
  • TI shift registers
  • And miscellaneous parts provided in the UCR-IEEE 120B kit.

USER GUIDE:

The game title and version shows up right after you power up the board. I’ve given player 1 the privileges to control and move around the menu (player 2 buttons are ignored in menu). There are 3 buttons each player. Leftmost button is to move left, middle to select, and rightmost to move right. Menu List: 1Player, 2Player and High Score. Player one must press the middle key in 1/2Player mode to enter the game. 1Player: After entering 1 player mode, the user can choose between 2 to 6 (2 being fastest) for the LED speed. Right and Left buttons are used to navigate and middle to start the game. 2Player: The Game Starts right away running in default speed (3). EEPROM saves high score for 1 player mode only. General Rule: Pressing all 3 buttons at the same time quits the game, and score is determined. Every time an LED hits the last column and eventually falls off and the user doesn’t press anything, the player’s available life is decremented (Each has 5 to start with). Every correct presses increments the player’s score. When the life available (regardless of which player) runs out the game ends and the points are compared to highest score. This is saved to EEPROM if in 1 player mode and congratulates the winning player who had a higher score when in 2 player mode.

Setup

https://cloud.githubusercontent.com/assets/6341487/8017651/047cbc92-0bb1-11e5-82fe-0c4553fb8650.jpg

https://cloud.githubusercontent.com/assets/6341487/8017652/047ea78c-0bb1-11e5-81bd-6c1cc732b62d.JPG

https://cloud.githubusercontent.com/assets/6341487/8017650/047b51fe-0bb1-11e5-8b46-42e506be4468.JPG

https://cloud.githubusercontent.com/assets/6341487/8017649/0477b06c-0bb1-11e5-8ea2-9aac7bf922c7.JPG

SOURCE FILES:

  • taplights.c
  • io.c
  • io.h
  • timer.h.
    NOTE: “final_project_1.5.c” holds all the code used for the final demonstration. The rest of the files are just supporting libraries(that I do not own).

REFERENCES:

tap-lights's People

Contributors

jpatu001 avatar

Watchers

 avatar

tap-lights's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.