Arduino [ch8660] Processing [ch8660] TouchOSC

Hello,

I would like some help on interfacing the Arduino with TouchOSC via Processing.

I’ve tried to get it so that a button on the TouchOSC app controls the pin 13 LED on the Arduino (following SparkFun’s tutorial: http://www.sparkfun.com/commerce/tutorial_info.php?tutorials_id=152). However, there is a problem with my Processing code. I get these errors when running the sketch:

2010-08-30 12:22:33.650 java[82806:170f] *** Assertion failure in -[CocoaAppWindow _changeJustMain], /SourceCache/AppKit/AppKit-1038.32/AppKit.subproj/NSWindow.m:9470

2010-08-30 12:22:33.654 java[82806:170f] *** CPerformer: ignoring exception 'Invalid parameter not satisfying: [self canBecomeMainWindow]' raised during perform of selector 'requestFocus:' on target 'FocusManager' with args '<AWTComponentSetFocusData: 0x105500>'

I have absolutely no idea what this means.

How can I fix this?

(In case you’re interested, my Processing code is here: http://pastebin.com/1e1Uim4N)

(Also, I should probably include a note why this isn’t on the Processing forums. Unfortunately, their captcha system seems to not be working, so I cannot register for their forums.)

Thanks,
–m

At the bottom of the post, there's a link to download the Arduino and the Processing code. try clicking that and just running the files.

When I was trying to get TouchOSC+Arduino running, whenever I tried copying the code off the webpage, it was always formatted wrong and failed to compile.

I successfully got it running with this tutorial though, http://innerqube.com/?p=591

The error message has gone away, however it still doesn't work. I followed exactly with the tutorial.

I think the problem might be with how the OSCp5 library connects to the TouchOSC app because I know that it works and connects when I use it with MIDI software through OSCulator. Also, when I use a packet capture utility like CocoaPacketAnalyzer, I see that the packets are successfully received by my computer.