I used a logic analyzer in order to reverse-engineer the SPI signal of the Nintendo DS touchscreen driver. I then removed the touchscreen driver and connected a microcontroller to those pads. One large challenge was creating a serial protocol that wouldn't interfere with the emulation of the touchscreen driver.