Just started my first real Processing project and I'm already stumped. The plan was to control the mouse using an Arduino and some pots/buttons like in this video (done using python):
http://www.youtube.com/watch?v=Shykd4HrP5k&feature=related
I already found the Robot class for moving the mouse, but I can't figure out how to send the integers from the Arduino to Processing. Can anyone guide me through the how this would be done? I've spent hours modifying existing examples, but I really have nothing to show for it.
Heres the Arduino code that sends the values for the two pots:
const int xx = A0; // pot for the x value is connected to analog 0
const int yy = A1; // pot for the y value is connected to analog 1