Lab / 02

PicoCalc Game Boy Emulator

An emulation experiment that takes the Game Boy’s 160 × 144 pixel output from the Peanut-GB core to a square LCD on the PicoCalc.

ClockworkPi PicoCalc handheld running a Game Boy game on its square LCD
The PicoCalc running the emulator, from the project repository.
Field
Embedded computing
Platform
Raspberry Pi Pico 2 · C · ST7789 LCD
Status
Hardware experiment

Engineering notes

Reuse the emulation core

Peanut-GB handles the emulated machine. The port supplies the Pico-specific framebuffer, display driver and cartridge access. Keeping those boundaries clear makes it easier to work on the hardware without rewriting the emulator.

Fit the screen one scanline at a time

The callback maps each source pixel to a four-shade palette and doubles each row and column. That yields a 320 × 288 image, centred on the 320 × 320 panel with the original aspect ratio intact.

Move finished frames over SPI

The implementation writes the frame using DMA through the LCD driver. This makes rendering and transfer distinct steps. The repository photo shows the prototype on hardware.