# ESP32 IoT RETRO CONSOLE

A fully asynchronous, Wi-Fi enabled retro slot machine and handheld console built with modern C++ and OOP principles.

Inspired by:
- Classic 8-bit arcade machines
- Retro handheld gaming consoles
- Modern IoT control dashboards
- Non-blocking embedded architecture

## Preview

![Console Preview](assets/console_preview.jpeg)
![Console Preview1](assets/consoleUi.jpeg)


## About

This project is an interactive desktop gaming console designed as an experimental bridge between physical arcade hardware and web-based IoT control.

The system handles:
- Non-blocking LED matrix animations
- Real-time embedded web server requests
- Hardware multiplexing (I2C, GPIO, PWM)
- 8-bit chiptune sound synthesis
- Dynamic probability and game logic

The project was created to practice:
- Advanced C++ Object-Oriented Programming (OOP)
- ESP32 Wi-Fi architecture and memory management
- Hardware isolation (overcoming I2C/Brownout conflicts)
- 3D modeling and mechanical tolerances (FreeCAD)

## Features

- **Web Control Panel:** Adjust game variables remotely.
- **Dynamic Matrix:** Real-time slot reels and scrolling text on 8x8 RGB Matrix.
- **Telemetry Display:** Live betting and banking status on 16x2 I2C LCD.
- **On-the-fly Settings:** Change win probabilities and volume instantly via Wi-Fi.
- **Custom Hardware:** 3D printed enclosure optimized with precise 12.2mm button tolerances.
- **Modular Engine:** Expandable architecture ready for future games (e.g., Minesweeper).

## Installation / Flashing

Configure your local network settings before flashing the firmware:

```cpp
// In config/WebConfig.h
#define WIFI_SSID "YOUR_SSID"
#define WIFI_PASSWORD "YOUR_PASSWORD"
