Christian.FL
Member
Hi, I kindly ask for help or guidance with the following problem.
best regards, Christian
Problem description
I am using the Teensy 3.2 board https://www.pjrc.com/store/teensy32.html as USB gamecontroller for a PC running Windows 10 home.
I am using the Arduino IDE 1.8.5 with Teensyduino 1.44
When compiling with USB Type "Keyboard + Mouse + Joystick" everything works fine: On the PC, I am using "USB gamecontroller einrichten" - "Eigenschaften" and can see the full Joystick with its pushbuttons and axis (Screenshot 1)
However, when compiling with USB Type "Serial+ Keyboard + Mouse + Joystick", on the PC, only the Pushbuttons are shown, no axis (Screenshot 2)
Screenshot 1:
Screenshot 2:
Source Code
After several test with my own code I found out, that the application seems to be irrelevant. I verified the problem with the "blink" example from Arduino, which is of course not able to make use of the Joystick but shows the same behaviour regarding the initialisation as described above.
For completeness, I posted the code of the blink example here, but as I said, the code seems to be irrelevant.
/*
Blink
Turns on an LED on for one second, then off for one second, repeatedly.
This example code is in the public domain.
*/
// Pin 13 has an LED connected on most Arduino boards.
// Pin 11 has the LED on Teensy 2.0
// Pin 6 has the LED on Teensy++ 2.0
// Pin 13 has the LED on Teensy 3.0
// give it a name:
int led = 13;
// the setup routine runs once when you press reset:
void setup() {
// initialize the digital pin as an output.
pinMode(led, OUTPUT);
}
// the loop routine runs over and over again forever:
void loop() {
digitalWrite(led, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(led, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
}
best regards, Christian
Problem description
I am using the Teensy 3.2 board https://www.pjrc.com/store/teensy32.html as USB gamecontroller for a PC running Windows 10 home.
I am using the Arduino IDE 1.8.5 with Teensyduino 1.44
When compiling with USB Type "Keyboard + Mouse + Joystick" everything works fine: On the PC, I am using "USB gamecontroller einrichten" - "Eigenschaften" and can see the full Joystick with its pushbuttons and axis (Screenshot 1)
However, when compiling with USB Type "Serial+ Keyboard + Mouse + Joystick", on the PC, only the Pushbuttons are shown, no axis (Screenshot 2)
Screenshot 1:
Screenshot 2:
Source Code
After several test with my own code I found out, that the application seems to be irrelevant. I verified the problem with the "blink" example from Arduino, which is of course not able to make use of the Joystick but shows the same behaviour regarding the initialisation as described above.
For completeness, I posted the code of the blink example here, but as I said, the code seems to be irrelevant.
/*
Blink
Turns on an LED on for one second, then off for one second, repeatedly.
This example code is in the public domain.
*/
// Pin 13 has an LED connected on most Arduino boards.
// Pin 11 has the LED on Teensy 2.0
// Pin 6 has the LED on Teensy++ 2.0
// Pin 13 has the LED on Teensy 3.0
// give it a name:
int led = 13;
// the setup routine runs once when you press reset:
void setup() {
// initialize the digital pin as an output.
pinMode(led, OUTPUT);
}
// the loop routine runs over and over again forever:
void loop() {
digitalWrite(led, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(led, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
}