I am trying to control motor speeds from my iPod through Processing and Arduino but don't know how. I have seen commands on Processing like "arduino.analogWrite(11, 200)". I understand this means write to pin 11 on the arduino analog value of 200. I know how to have a serial communication from Processing to Arduino but need something more specific for variable values.
How do I make the arduino listen to analog values?