New ESP32-S3 development board is now available → /products
</>OceanLabz
ESP32Beginner~45 min

Chrome Dino Game on ESP32 + OLED

The classic Chrome offline dino, running on an ESP32 with an SSD1306 OLED and a button.

Everything you need

Required Components

#Introduction

A fun first display project: the Chrome dino game on a 0.96" OLED, jump button wired to GPIO 25.

#Wiring

  • OLED SDA → 21, SCL → 22
  • Button between GPIO 25 and GND (INPUT_PULLUP)

#Steps

  1. Wire as above.
  2. Flash the sketch — no libraries beyond Adafruit SSD1306 needed.
  3. Press the button to jump the cactus. Score shows at game over.

#How it works

A tiny game loop: dino Y-physics on jump, cactus X scrolling left, pixel-collision check each frame at ~30fps.

Keep going