OH!!!!
i need to send the arduino 2 sketches! one on arduino program, and one on processing, now it makes sense why it wouldent work...
edit, here i got it working. On the software interface page, it gives a quick sketch and i edited it a bit to make it finally work, and heres the result:
import processing.serial.*;
import cc.arduino.*;
Arduino arduino;
int ledPin = 12bb;
void setup()
{
//println(Arduino.list());
arduino = new Arduino(this, Arduino.list()[1], 57600);
arduino.pinMode(ledPin, Arduino.OUTPUT);
}
void draw()
{
if(keyPressed) {
if (key == 'b' || key == 'B') {
arduino.digitalWrite(ledPin, Arduino.HIGH);
}
} else {
arduino.digitalWrite(ledPin, Arduino.LOW);
}
rect(25, 25, 50, 50);
}
and then i programmed glovepie (with a code thats shorter then my name lol ) and now when i press A on my wiimote, and led lights up on the arduino!
IT WORKED!!!
awsome, thanks for the help, i wouldent have been able to do it without your help, and now i could move onto more complex things, i could even make a wiimote controlled robot
thanks again!
-big93