Hi there,
i've been programming arduino for a short time and now am working on controlling my devices with one of my controller ( xbox 360 especially ), and i discovered processing in order to use some of these libraries.
i started downloading "procontroll" too, but i simply cannot get any serial signal for example, this code does not display anything:
import processing.serial.*;
Serial newSerial ;
void setup()
{
size(200, 200);
String portName = Serial.list()[0];
myPort = new Serial(this, portName, 9600);
}
void draw()
{ println ( newSerial.list () ) ;
}
i'm trying to do this because every time i get errors like array size does not fit ( for serial.list () )
and deleting [] gets me " cannot convert string[] to string " .
Any advices??
i think the fact i do not get any serial.list is that my drivers aren't working ( tho i have downloaded the very last ones, and the controller is recognised by the computer as " Xbox 360 Controller for windows", but i cannot acces it in any other serial devices ( terminal etc.. )
I need help because i'm not totaly sure if this is due to this
thanks
i've been programming arduino for a short time and now am working on controlling my devices with one of my controller ( xbox 360 especially ), and i discovered processing in order to use some of these libraries.
i started downloading "procontroll" too, but i simply cannot get any serial signal for example, this code does not display anything:
import processing.serial.*;
Serial newSerial ;
void setup()
{
size(200, 200);
String portName = Serial.list()[0];
myPort = new Serial(this, portName, 9600);
}
void draw()
{ println ( newSerial.list () ) ;
}
i'm trying to do this because every time i get errors like array size does not fit ( for serial.list () )
and deleting [] gets me " cannot convert string[] to string " .
Any advices??
i think the fact i do not get any serial.list is that my drivers aren't working ( tho i have downloaded the very last ones, and the controller is recognised by the computer as " Xbox 360 Controller for windows", but i cannot acces it in any other serial devices ( terminal etc.. )
I need help because i'm not totaly sure if this is due to this
thanks