Loading...
Logo
Processing Forum
Hi all,
I know this is probably a no-brainer for some of you...
I have completed a project using Processing and have it set up so that certain keypresses do certain things. It's now time to put the installation together.

 All I want to do is use simple switches hooked up to the Arduino to take the place of the keypresses in my Processing sketch. How can I tell processing which pins to assign to each of my different actions? I have followed this tutorial http://arduino.cc/en/Tutorial/Graph and I get it but can't figure out how to take in readings from separate pins...
 Thanks in advance... :)

Replies(1)

I'm very new to arduino. I tried this the other way - processing to arduino - and works great.
You are looking for serial communication. You need to make a simple protocol for that. To say what goes where
take a look at this tutorial.
Arduino - SerialCallResponse

Some about protocols and handshaking here:
Learning Processing: Examples chapt 19-8,19-9, 19-10 -  those are about processing/processing (client/server) communication, but the ideas and concepts are the same.

good luck