View Full Version : Gameboy Emulator for the Teensy 4.1

09-11-2020, 07:55 AM
Hi all!


I've been working on a Gameboy emulator for the Teensy 4 family and it's now able to run Tetris at full speed with sound output directly from the Teensy.


Here's a quick video demo:


I also wrote a couple of blog posts (https://medium.com/@raphaelstaebler/behold-the-breadboard-gameboy-d966249a482e?source=friends_link&sk=f7f10d0bb55876e5ce65c477edf57006) on the project.

Some Background

Although I initially used one of the common ILI9341 displays for a proof of concept, I went to find a more suitable screen for proper Gameboy output. That's why I ended up creating a custom display driver board for the build. Of course, with some adaptions to the code, any other display may be used with this project.

Speaking of the code, here's the GitHub repository (https://github.com/blazer82/gb.teensy).
Contributions are welcome and, in fact, SD card support is only here because of some awesome contribution.

That brings us to the features:

Load ROM from SD card
Run Tetris at full speed
3 channel sound output
Passes Blargg's CPU instruction tests

The audio integration is done entirely on the Teensy and for each of the original sound channels of the Gameboy a GPIO pin is used. These can be mixed together electrically and fed into an amplifier. The required circuitry is documented in the README of the repository (https://github.com/blazer82/gb.teensy).

Of course, development isn't finished yet and it probably never will be. Top points on the roadmap are: support for more games, add automated tests, add fourth sound channel, add SD card menu.