Skip to content

IsaacHo072/PIC18F-Tetris

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PIC18F-Tetris

Tetris game which runs on a PIC18

Hardware

  • PIC18F4520
  • HT16K33
  • 8x8 Bi-Colour Common-Cathode LED Matrix
  • 13mm Seven Segment Display, Common-Cathode
  • 74HC14
  • Some cherry-mx compatible switches

Program

  • Button polling used to read the buttons
  • simpletetris.c is the main game program, also directly write to the displays
  • Device configuration code in devcon.h

Tetris

Has basic Tetris features including moving left, right, down and rotating the piece. Also for holding one Tetris piece in top-left corner. Top-right corner shows the next piece to be dropped.

Compiling

The program could be compiled with the legacy MPLAB C18 C Complier. Change the device configuration and I2C function to I2C1/2 if a different PIC18 microcontroller is used.

Pictures

Packages

No packages published

Languages