I've got some simpler code that should do the black and white classic Mac mode (512x342) that you an use as a reference. I found the PicoVGA code hard to follow because of the complexity of handling multiple modes and color depths.I am also starting on a project to do digital RGB (i.e. CGA) to VGA on the RPi Pico, I think it is very possible, and probably even feasible for weird Mac/Lisa mono video. It’s using the logic analyzer PIO example and the PicoVGA library. Waiting on the boards, maybe have it working early 2023? Firmware always takes me longer than hardware because it sucks.
GitHub - crackmonkey/macvid: Mac classic video capture and translation on an RP2040
Mac classic video capture and translation on an RP2040 - crackmonkey/macvid
github.com