You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to make a new joystick class in my project that wrap this Joystick class of your library but seem like if I generate a private Joystick_ object without any parameter and then I define it in the constructor with parameters it set Joystick twice and soft brick my Arduino Leonardo (the only way to reset it is short GND and RST pin while is uploading to let him recognize the usb again from the bootloader)
Technical Details
Arduino Board: arduino leonardo
Sketch File that Reproduces Issue
The only way to make it works is by declaring a single new Joystick_ object and passing it like an argument.
Description of Issue
I would like to make a new joystick class in my project that wrap this Joystick class of your library but seem like if I generate a private Joystick_ object without any parameter and then I define it in the constructor with parameters it set Joystick twice and soft brick my Arduino Leonardo (the only way to reset it is short GND and RST pin while is uploading to let him recognize the usb again from the bootloader)
Technical Details
Sketch File that Reproduces Issue
The only way to make it works is by declaring a single new Joystick_ object and passing it like an argument.
main.cpp
joy.cpp
I would like to be able to write in this way:
Joy.cpp
joy.h
Is this issue happening because Joystick_ call pinmode() twice in case I use in constructor?
Thanks
The text was updated successfully, but these errors were encountered: