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
Hi, I was woundering how to use your library to work with joystick buttons. They have basically x2 10K resistors, so values from analog read goes something like this:
Left-Right/Top-Down:
Left
Middle
Right
0
1850-1900
4096
Joystick press:
Pressed
Default
0
800-1300
I've tried both Pull_down and Pull_up for the corresponding pins, but values are the same.
Is there any way how I can define (ideally with interrupts) buttons that have both high and low values ? Or define max/min value ?
Hi @shafr
At the moment the library does not support this type of control but you have definitely pointed out an interesting feature to be implemented.
I've found something similar that is already implemented here. It has calibration (3.3v and 5v) value detection and implementation itself. (Beerware license)
Maybe there can be a class that is EasyJoystick instead that would extend EasyButton and would have:
Hi, I was woundering how to use your library to work with joystick buttons. They have basically x2 10K resistors, so values from analog read goes something like this:
I've tried both Pull_down and Pull_up for the corresponding pins, but values are the same.
Is there any way how I can define (ideally with interrupts) buttons that have both high and low values ? Or define max/min value ?
I'm using ESP32 DEV and Joystick Like this
Thank you.
The text was updated successfully, but these errors were encountered: