A dynamic Snake game built with an ESP32 microcontroller and a NeoPixel LED matrix, controlled via a joystick.
This project is a recreation of the classic Snake game using modern electronics. It runs on an ESP32 microcontroller and displays on a NeoPixel LED matrix, with user input provided by a joystick. The game challenges players to navigate a growing snake around a grid, eating food to gain points while avoiding collisions with the snake's tail and the grid boundaries.
- ESP32 Microcontroller: Acts as the brain for the game, processing inputs and controlling outputs.
- NeoPixel LED Matrix: Displays the game state visually.
- Joystick: Allows the player to control the direction of the snake.
- Power Supply: Ensures adequate power to the ESP32 and the LED matrix.
- Miscellaneous: Connecting wires, breadboard, and resistors for setup.
- Arduino IDE: Used to write and upload the game code to the ESP32.
- Adafruit NeoPixel Library: Manages the operations of the NeoPixel LED matrix.
- Assemble the Hardware: Connect the ESP32 to the NeoPixel matrix and the joystick according to the circuit diagram provided in the repository.
- Install Software: Install the Arduino IDE and include the Adafruit NeoPixel library.
- Upload the Game: Open the
ESP32Snake.inofile with Arduino IDE, connect the ESP32 via USB, and upload the code.
- Use the joystick to navigate the snake around the grid.
- Eat food that appears randomly to increase your score.
- Avoid hitting the walls or the snake's own tail.
- The game speeds up as the snake's length increases.
Contributions to this project are welcome! You can contribute in several ways:
- Bug Reports: File an issue if you find a bug.
- Feature Suggestions: Have an idea to make this game better? File an issue with your suggestion.
- Code Contributions: Submit a pull request with improvements or new features.
This project is released under the Creative Commons Zero v1.0 Universal License. See the LICENSE file for more details.





