Teensy 4.1 extreme joystick, can't use Joystick.X,Y,Z

Status
Not open for further replies.

joonaskali

New member
Hello,
I'm using teensy 4.1 for a extreme joystick project and I have problems with using joystick.axis.
My error messages are
Code:
ThrottleQuadrantLatest: In function 'void Quadrant()':
ThrottleQuadrantLatest:179: error: 'class usb_joystick_class' has no member named 'Rx'
   Joystick.Rx(potPinVal[0]);
            ^
ThrottleQuadrantLatest:181: error: 'class usb_joystick_class' has no member named 'Ry'
   Joystick.Ry(potPinVal[1]);
            ^
'class usb_joystick_class' has no member named 'Rx'


Code
View attachment ThrottleQuadrantLatest.ino
Wiring
1.png
I'm using arduino software and Keypad and Encoder libraries.

So what should i put after Joystick. to change joystick values?
 
Status
Not open for further replies.
Back
Top