Hi. I apologise if this is a) in the wrong place and/or b) if this is a repeat. I could not get a search term to find an answer that made any sense to me.
The latest version of Arduino code no longer has the option under tools, to select USB Type.
I made (using an excellent teensy) a USB button box for a Truck Driving Sim on the PC. It has joystick and many buttons. Was recognised us a USB Gaming Device by Windows 10. One is still working. I want to create another, better improved version, but....
I am about to buy a couple more teensy 2's as they are excellent for this build, but if the code no longer compiles because the menu item has been removed, has anyone any idea of a way forward please?
code from below shows that the USB Type needed to be selected.
(I rolled back the arduino software to 1.8.7 but it still did not have that option...)
/* Complete USB Joystick Example
Teensy becomes a USB joystick with 16 or 32 buttons and 6 axis input
You must select Joystick from the "Tools > USB Type" menu
Pushbuttons should be connected between the digital pins and ground.
Potentiometers should be connected to analog inputs 0 to 5.
This example code is in the public domain.
*/
// Configure the number of buttons. Be careful not
// to use a pin for both a digital button and analog
// axis. The pullup resistor will interfere with
// the analog voltage.
The latest version of Arduino code no longer has the option under tools, to select USB Type.
I made (using an excellent teensy) a USB button box for a Truck Driving Sim on the PC. It has joystick and many buttons. Was recognised us a USB Gaming Device by Windows 10. One is still working. I want to create another, better improved version, but....
I am about to buy a couple more teensy 2's as they are excellent for this build, but if the code no longer compiles because the menu item has been removed, has anyone any idea of a way forward please?
code from below shows that the USB Type needed to be selected.
(I rolled back the arduino software to 1.8.7 but it still did not have that option...)
/* Complete USB Joystick Example
Teensy becomes a USB joystick with 16 or 32 buttons and 6 axis input
You must select Joystick from the "Tools > USB Type" menu
Pushbuttons should be connected between the digital pins and ground.
Potentiometers should be connected to analog inputs 0 to 5.
This example code is in the public domain.
*/
// Configure the number of buttons. Be careful not
// to use a pin for both a digital button and analog
// axis. The pullup resistor will interfere with
// the analog voltage.