TicTacToe is a 2-player game written in embedded C for CSE2006 project. It runs on Atmel AT89S52.
- AT89S52 microcontroller
- LED Matrix
- MAX7219 IC
- SPI IC
- Button grid for input
- Breadboards, jumper cables and batteries
- Arduino (as ISP)
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.
- MAX7219.C, MAX7219.h: driver for LED matrix
- game.c, game.h: game logic
- tictactoe.c: application entry point
Special acknowledgment to Randy Rasa for the LED driver.