I've written code to run my SRV1 camera from my iPhone (
http://www.youtube.com/watch?v=s8w76_7unBs&feature=mfu_in_order&list=UL) and from Python, using the standard ASCII protocol (
http://www.surveyor.com/SRV_protocol.html). Now I would like to add some code to interact with other digital devices, via the GPIO pins -- e.g., press a button in my iPhone app to assert a value on a given GPIO pin. It appears that in order to do this I must use Pico C. So my problem is: how do I compile and upload my Pico C programs to the SRV1 so that I can do this? I'm guessing it would involve using the zAxx command to read from flash sector xx into the flash buffer, and then using the Q command to run the Pico C program in the flash buffer. But how do I get this Pico C program into the flash buffer to begin with? I've successfully run Pico C programs on the SRV1 interactively from my iMac using the ! command, but I don't understand how to upload an entire program at a time.
Of course, if there's some way to assert values on the GPIO pins using the ASCII protocol, I'll stick with that!