Teensy 3.5 USB Joystick issue (Teensy 4.0 ok)

phijun

Member
Hi

IDE 1.8.19, Windows 10 64 bits

Basic joystick code

void setup() {
pinMode(0, INPUT_PULLUP);
Joystick.useManualSend(true);
}

void loop() {
Joystick.button(32, digitalRead(0) ? 0 : 1);
Joystick.send_now();
delay(20);
}

With a teensy 4.0, single button works, tested with joy.cpl, and after unplug plug USB, and after a reboot.
All good : joystickOK.jpg.

Now with a teensy 3.5, it does not work. joy.cpl shows
"Teensy Flight Sim Controls" but it's impossible to see joy.cpl
like in joysticjOK.jpg, see joystick.jpg.

The only way to have it working is to ADD in setup() first
Serial.begin(115200);
Serial.println("Teensy 3.5 USB joystick makes me nuts...");
AND the IDE must be opened, AND the serial console must be
opened (IDE shows Serial Ports as emulated), AND console
must not show "hid..(Teensy) FlighSim offline" (if it is offline, reset button is used).
See joystick1.jpg.
Than only joy.cpl is like in joystick.jpg (buttons are shown).

And this must be done after unplug/plug USB/reboot.
 

Attachments

  • joystickOK.JPG
    joystickOK.JPG
    74.8 KB · Views: 16
  • joystick.JPG
    joystick.JPG
    47.7 KB · Views: 17
  • joystickFix.JPG
    joystickFix.JPG
    59.3 KB · Views: 16
Back
Top