Skip to content

Krishpatel5757/ESP32_TicTacToe_OLED

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ESP32 Tic Tac Toe on OLED

This is a Tic Tac Toe game developed using an ESP32 microcontroller, push buttons for input, and an SSD1306 OLED display for output. The project features both single-player and multiplayer modes.

In single-player mode, the game includes three difficulty levels: Easy, Medium, and Hard, offering a fun and challenging experience against an AI opponent.


Features

  • Two game modes: Single-player (vs AI) and Multiplayer (2-player)
  • AI with three difficulty levels
  • Intuitive button-based navigation
  • Visual display optimized for 128x64 OLED

Hardware Used

Component Details
Microcontroller ESP32 DevKit v1
Display SSD1306 OLED (128x64, I²C)
Input 6 Push Buttons (Navigation + Back)
Breadboard For prototyping
Jumper Wires For connections

Pin Configuration

Button Pins

Button ESP32 Pin
Left D13
Right D12
Up D14
Down D27
Select D26
Back D25

OLED Pins

OLED Pin ESP32 Pin
GND GND
VCC 3.3V
SCL D22
SDA D21

Libraries Used

Install via PlatformIO.


Preview

Main manu

Main Manu

Levels

Levels

Game on OLED

Game on OLED


License

This project is open-source and available under the MIT License.


Releases

No releases published

Packages

No packages published

Languages