Thanks to visit codestin.com
Credit goes to github.com

Skip to content

ondrejhanak/esp32-snake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Snake Game for ESP32

Classic snake game running on ESP32 with SSD1306 OLED display, analog joystick control, and buzzer sound effects. Inspired by the iconic Nokia 5110 snake.

I build this as a demo project to explore ESP32 development with VS Code, PlatformIO, and Wokwi simulator. See also my BLE Heart Rate Sensor Simulator.

Gameplay

Features

  • 128x64 OLED display with sprite-based graphics
  • Analog joystick for directional control
  • Sound effects for movement, eating, and game over
  • Pause/resume with joystick button press
  • Progressive difficulty - speed increases as snake grows
  • Wokwi compatible - can run in the simulator

Try It

Run the simulation in your browser: Wokwi Project.

Construction

Breadboard

  • ESP32 development board (e.g., ESP32 DoIt DevKit V1)
  • SSD1306 128x64 I2C OLED display
  • Analog joystick module with button
  • Passive buzzer
  • VS Code with PlatformIO and Wokwi plugins
  • C++ code

About

Classic snake game on ESP32 in C++, with OLED display, joystick control, and sound effects.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors