Giter Club home page Giter Club logo

tetripi's Introduction

tetripi

a final project for my graduate Hardware System Design course. in a nutshell, it's a box that plays Tetris! Mostly!

IMG_6420

Tetripi is a little program that runs Tetris on a Raspberry Pi, encased in a little arcade box. It makes use of a 16x8 LED Matrix to display the board and some buttons to control the game. It also features a power switch on the side to "turn off" the game (in reality, it is placed in standby mode) and turn it back on. A piezo buzzer is also used to provide audio feedback to the player.

To run the game, simply run on the command line python tetripi.py (using Python 3.x) and play as far as you can!

The following components were used:

  • 16x8 LED Matrix + Backpack (GPIO pins 2 and 3 for I2C) - Displays the tetris board
  • 6 LED Pushbuttons - Moves, rotates, and drops the active piece on the board. Each button is wired to 2 GPIO pins, one for input and the other for its LED
    • Up button uses pins GPIO pin 16 for input and GPIO pin 19 for light
    • Left button uses pins 5 and 6
    • Right button uses pins 20 and 21
    • Down button uses pins 12 and 13
    • A button (the right, blue button) uses pins 17 and 18
    • B button (the left, blue button) uses pins 23 and 24
  • Slide switch (GPIO pin 27) - Powers on and off the game
  • Piezo buzzer (GPIO pin 22) - Provides audio feedback to the player

tetripi's People

Contributors

noatpad avatar

Watchers

 avatar

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.