Skip to content

anujanegi/TicTacToe

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TicTacToe

TicTacToe is a 2-player game written in embedded C for CSE2006 project. It runs on Atmel AT89S52.

Hardware

  • AT89S52 microcontroller
  • LED Matrix
  • MAX7219 IC
  • SPI IC
  • Button grid for input
  • Breadboards, jumper cables and batteries
  • Arduino (as ISP)

The circuit looks like: circuit

Running

Flash the code onto the microcontroller using a programmer. We followed this blogpost and used Arduino as a programmer.

The buttons in the 3*3 grid act as an input and the visuals is shown on the LED matrix.

Code

  • MAX7219.C, MAX7219.h: driver for LED matrix
  • game.c, game.h: game logic
  • tictactoe.c: application entry point

Look and Feel

The project looks like this! hardware

Contributors

@anujanegi @shubham1172

Special acknowledgment to Randy Rasa for the LED driver.

About

Tic Tac Toe on 8052 in embedded C

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 90.7%
  • C++ 7.2%
  • Objective-C 2.1%