Projects / Ideas / Snake game on an OLED

Snake game on an OLED

IntermediateDisplaysIdeaReviewed
In short

How do you build a snake game on an OLED?

A classic snake game played with four buttons on a small OLED screen. You need Arduino Nano, SSD1306 OLED Display, Tactile push button 6 mm × 4, Resistor 10 kΩ × 4, Breadboard 830 Tie Points and Jumper wires male to male (40 pcs, 20 cm).

Level
Intermediate
Time
About 210 min
Parts
6
An idea, not a guided build yet. Goal, parts and steps; no wiring, code or tests. Copy it to My Garage to plan it.
Goal

Practise game loops and a framebuffer.

How to build it

  1. Set up the OLED library
  2. Draw the snake and food
  3. Move on a timer
  4. Read four direction buttons
  5. Show the score and game over

Related projects

Common questions

What parts do I need for the snake game on an OLED?

Arduino Nano, SSD1306 OLED Display, Tactile push button 6 mm × 4, Resistor 10 kΩ × 4, Breadboard 830 Tie Points and Jumper wires male to male (40 pcs, 20 cm).

How long does the snake game on an OLED take to build?

About 210 minutes for a intermediate maker.