Hi, I'm new to Arduino programming, but I'm having trouble reading from the USB native port on my Arduino DUE board.
I have a Cyborg PC Flight Stick v1 usb joystick connected to the native USB port on my DUE and I cannot detect any input from the joystick.
The program is as follows:
void setup() {
// initialize serial:
Serial.begin(9600);
SerialUSB.begin(9600);
}
void loop() {
// if there's any serial available, read it:
while (SerialUSB.available() > 0) {
Serial.println(SerialUSB.read());
}
}
I can't seem to find any info on the SerialUSB class.
What am I doing wrong? Any help would be appreciated!