Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SnakePIO

A classic Snake game implementation for the ESP32-4848S040C_I (Sunton 4.0" 480x480 Touch Display).

Hardware

  • Board: ESP32-4848S040C_I
  • Display: 4.0" 480x480 IPS (ST7701S Driver via 3-wire SPI + RGB)
  • Touch: GT911 Capacitive Touch

Features

  • Classic Gameplay: Eat food to grow, avoid walls and your own tail.
  • Swipe Controls: Intuitive touch gestures (Up, Down, Left, Right).
  • Game States: Title Screen, Options Menu, Gameplay, Game Over with Score.
  • Options Menu:
    • Speed: Slow, Medium (Default), Fast, Insane.
    • Start Length: 1, 2, 3 (Default), 5, 8, 13, 21.
  • Optimized Rendering: Uses LovyanGFX for high-performance graphics.

Controls

  • Swipe Up/Down/Left/Right: Change snake direction.
  • Tap Buttons: Navigate menus (Start, Options, Back, Settings).

Build & Flash

  1. Open in VS Code with PlatformIO.
  2. Build: pio run
  3. Upload: pio run --target upload

About

An implementation for Snake on an ESP32 4.2" Touch Screen (ESP32-4848S040C_I)

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages