Here’s what it looks like on the Arduino (with a potentiometer and two buttons):
Here’s the code:
And here’s what it looks like on the screen:
There’s a few things to know about getting the Arduino working with Processing – here’s a link. And, with luck, later I’ll post a better image and description of the wiring, but no time now!