Brian,
Since you’ve got a Pimoroni coming, here’s where I’d start if you (or anyone) want to try the port. FRANK Quest keeps its hardware code in a few places, separate from the game engines:
- `src/backends/platform/rp2350/rp2350-minimal.cpp` implements the `cabal_*` functions the engines call: the screen (`cabal_init_graphics`, `cabal_update_screen`, `cabal_set_palette`), input (`cabal_poll_event`) and time. Most of the port is rewriting this one file for the PicoCalc.
- `drivers/HDMI.c`, `drivers/ps2/` and `drivers/usbhid/` are what it uses now for the screen, keyboard and mouse. On the PicoCalc these get replaced.
- `drivers/audio/audio.c` is the sound (I2S, through `cabal_audio_*`).
- `drivers/sdcard/` and `src/board_config.h` hold the SD card and pin settings.
What the PicoCalc has instead (pins from Blair Leduc’s picocalc-text-starter, which has working drivers for all of them):
- **Screen:** 320x320 LCD on SPI1 (SCK GP10, MOSI GP11, MISO GP12, CS GP13, DC GP14, RST GP15), RGB565. A 320x200 game fits the width. Instead of HDMI scanning out a framebuffer, `cabal_update_screen` would convert the 8-bit picture through the palette and send it to the LCD. At 75 MHz a full 320x200 frame takes about 14 ms.
- **Keyboard:** read over I2C1 (SDA GP6, SCL GP7) from the STM32, `sb_read_keyboard()` in the text starter. Its key codes would be turned into `CABAL_KEY_*` events in `cabal_poll_event`.
- **Mouse:** a Bluetooth one works. I paired my Logitech M720 with btpair from [picocalc-extras]( GitHub - ctorkildson-netizen/picocalc-extras · GitHub ) and every movement and click came through; `btkbd_pointer()` gives the movement and buttons, which `cabal_poll_event` would turn into mouse events. That needs the **W** board (Pico Plus 2 W) for the radio. Without a mouse, Sierra’s AGI games (King’s Quest, Space Quest) are mostly played by typing, so they’d work first, and one key could switch the arrow keys between walking and moving a pointer, with Enter as the click.
- **Sound:** PWM on GP26 and GP27 instead of an I2S DAC.
- **SD card:** SPI0 (MISO GP16, CS GP17, SCK GP18, MOSI GP19).
Two other things: `build.sh` defaults to 504 MHz, which is a big overclock, while `src/board_config.h`'s own default is 252 MHz, which is where I’d start. And the Pico Plus 2’s PSRAM is on GP47, which FRANK Quest already detects on an RP2350B, so that part should just work.
I’d get the SD card and the screen going first, so you can see the game selector, then the keyboard, then sound.
Good luck, and post how it goes.