Skip to content

bytehaufen/arduino-snake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

175 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Arduino Snake

Overview

Arduino Snake is a classic snake game ported to the Arduino platform. It is written in C++ and utilizes the Adafruit GFX library. The game is designed to run on an Arduino Uno, with a joystick for input and a 280x240 OLED display with an ST7789 driver for output.

Note

This project was developed as a study project to learn more about Arduino programming and interfacing with hardware components.

Features

  • Classic snake gameplay
  • Adjustable difficulty levels
  • High score tracking
  • Smooth graphics using the Adafruit GFX library
  • Responsive joystick controls

Components

  • Arduino Uno
  • Joystick
  • 280x240 OLED Display with ST7789 driver

Schematic

For wiring details, refer to the Schematic.

Installation

  1. Clone the repository:

    git clone https://github.com/yourusername/arduino-snake.git
    cd arduino-snake
  2. Install PlatformIO: Follow the instructions on the PlatformIO website.

  3. Initialize the project:

    pio project init --board=uno
  4. Install dependencies:

    pio lib install

Usage

  1. Build and upload the project:

    pio run -t upload
  2. Monitor the serial output:

    pio device monitor

License

This project is licensed under the Unlicense.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •