Skip to content

Clone of T-rex game from Chrome browser rewritten for Arduino

License

Notifications You must be signed in to change notification settings

AlexIII/t-rex-duino

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

T-Rex-duino

Clone of T-rex game from Chrome browser rewritten for Arduino.

Just 3 components needed:

  • Arduino Uno / Nano / Pro Mini
  • OLED display 128x64 SSD1309
  • A button (or two, if you want to duck!)

Youtube video

Update

Now supporting SH1106/SSD1306 based I2C OLED display!

Instructions

  1. Assemble

  1. Flash that sketch to your Arduino
  2. Play!
  3. Repeat from step 2

Using OLED display SH1106/SSD1306 I2C

  1. In order to use SH1106/SSD1306 you will need to add two 470 ohm resistors to the display board. You can add these resistors right on top of 10k resistors that already present (or replace them).

  1. Assemble

  1. Select OLED display type at the beginning of t-rex-duino.ino sketch by uncommenting one of the following lines (SSD1309 selected by default).
//#define LCD_SSD1309
//#define LCD_SH1106
//#define LCD_SSD1306

Flash the sketch.

Note that in order to achieve desirable performance I2C is substantially overclocked (it works at 800kHz vs 400kHz as per display specification). It is possible that not every display will work under these conditions. The display I have works fine mostly, but a stray broken frame still appears now and then. As much as I can assume small artifacts are unavoidable with this display.

License

MIT License © github.com/AlexIII