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.
