[Doctor Volt] has a new video showing just that with the innards of a Logitech peripheral. The mouse contains a microcontroller and the camera part, which fortunately has an SPI interface.