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.
- Classic snake gameplay
- Adjustable difficulty levels
- High score tracking
- Smooth graphics using the Adafruit GFX library
- Responsive joystick controls
- Arduino Uno
- Joystick
- 280x240 OLED Display with ST7789 driver
For wiring details, refer to the Schematic.
-
Clone the repository:
git clone https://github.com/yourusername/arduino-snake.git cd arduino-snake -
Install PlatformIO: Follow the instructions on the PlatformIO website.
-
Initialize the project:
pio project init --board=uno
-
Install dependencies:
pio lib install
-
Build and upload the project:
pio run -t upload
-
Monitor the serial output:
pio device monitor
This project is licensed under the Unlicense.