Empitrix / oled-snake

Snake game with ESP8266 and OLED display

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Snake game with ESP8266 and OLED display


Languages

Language:C 94.4%Language:Makefile 3.0%Language:CMake 2.7%