

Void oscEvent(OscMessage theOscMessage) įloat val = theOscMessage.get(0).floatValue() Processing code for on/off: import oscP5.* ĪrduinoPort = new Serial(this,Serial.list(),9600)

SerAva = Serial.available() // Read number of input bytes 5mS work great for 9600 baud (increase this number for slower baud)
#Touchosc editor no jvm serial#
If (Serial.available()>0) // Check to see if there are any serial inputĭelay(5) // Delay for terminal to finish transmitted Int i, serAva // i is a counter, serAva hold number of serial availableĬhar inputBytes // Array hold input bytesĬhar * inputBytesPtr = &inputBytes // Pointer to the first element of the array I've tried to attach the templates I've created/am using, hopefully they upload properly)Īrduino code for the dimmer: int LBlue = 3 the app that creates the TouchOSC templates is called TouchOSC Editor. I can see that processing is receiving the number from the iPod properly, because it prints it properly, but it doesn't dim the lights on the arduino. I can turn each LED on and off individually using a different set of sketches, but I'm having trouble with this dimming one. The arduino is then supposed to read the serial, figure out which LED it has to dim, and then dim it to that level. Basically, the app on the iPod sends a value to processing, on my Mac, which then sends that value onto the arduino through serial. I want to be able to dim each LED individually from the iPod. Hi there, I'm trying to control a set of LEDs with my ipod touch, using an app called TouchOSC.
