You can download all the examples from this: LINK.
My first experiment is controlling drops of rain using the potentiometer.
Following the same idea, I’ve modified a space invaders game controlled by potentiometer and button in Arduino. Sending two signals through the serial port. I declared a variable greater than the potentiometer value to control the button. The potentiometer’s value goes from 0 to 1023. The value’s button is 1 or 0, depending if is pressed or not. If the button is pressed I’ve assigned a value greater than 1023 to know when the button is pressed.
I also designed a simple example in the other direction, from processing to Arduino to control a led.
And finally, thinking about my thesis I have developed an experiment to change video properties on processing, through Twitter.