hi, i'm pretty new to both arduino and processing. i'm working on putting together a piece involving several dc motors for an upcoming art installation. i already have been able to get the motors spinning with arduino and some hbridges, but i'd like to interface with processing so that i can trigger the motors based on visual input. my trouble at the moment is with the interfacing.
it seems like the best way to do this would be to stick all of the hbridge legs on the first 8 inputs (there are 4 motors total). then i can just send a byte to PORTD (http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1160606668/2) each time to change the direction/start/stop the individual motors. i am confused on how to get the proper data format to PORTD, though, as it only accepts hex values and (i think) processing can only write ints, chars, bytes, and byte's to the serial port. is there a simple way to make this conversion?
sorry for the very elementary nature of this question - i am still quite new at this. any help would be very much appreciated, though!!! thanks!