Firmware for Atmega8A microcontroller: the Chrome-style Dino runner game on a Nokia 5110 (PCD8544) 84x48 LCD. The high score is stored in EEPROM.
Requires gcc-avr and avr-libc:
sudo apt-get install -y gcc-avr avr-libc- Set up your frequency in freq.h, now it's 10 MHz
- Build project:
make(producesdist/out.hexanddist/eep.hex, prints a size report) - Upload firmware:
make upload(avrdude with a USBasp programmer) - Configure external crystal oscillator with updating fuse bytes
Host-side unit tests for the game logic (no AVR toolchain required):
make test- PD1 button — jump / start game (hold on the start screen to reset the high score)
- PD7 button — toggle LCD backlight (LED on PB0)
If you want to generate custom hero or barrier use ./img_maker
- Install dependencies:
- Run
python3 ./img_maker/index.py YOUR_IMAGE.png - Past generated code to dino/dino.c DINO_PIC or BARRIER_PIC


