/oled-snake

Snake game with ESP8266 and OLED display

Primary LanguageC

OLED SNAKE

Snake game written in ESP8266 with OLED display

Game function

The snake will move faster as it gains more points

Build

requirements:

hardware requirements:

  • NodeMCU (ESP8266)
  • SSD1306 0.96 inch OLED display
  • 4x push button
  • 4x 10k or 4.7k resistor
  • bread board

to build this project:

git clone "https://github.com/Empitrix/oled-snake" && cd ./oled-snake
make menuconfig  # to setup port and flash size

after setting up port and flash size in menuconfig compile it using:

make all
make flash  # to upload into ESP8266

Connection

All of the keys are pull-down

  • D6 for (UP) key
  • D7 for (DOWN) key
  • D8 for (RIGHT) key
  • D5 for (LEFT) key