Closed xXThanatosXx997 closed 2 years ago
You have to use rotary encoder library thats makes your job more easier.
Could you sent me a link to the library ? also is there any example with interupts anywhere ?
There so much rotary encoder libary. Sorry i am really far away my house right now. I can help you 2 week later if you need still help. You can use this https://github.com/mathertel/RotaryEncoder Or https://github.com/Erriez/ErriezRotaryEncoderFullStep https://github.com/Erriez/ErriezRotaryEncoderHalfStep You can use this methods i guess, Check rotary encoder position and make if statement. Like if rotary encoder is cw press button 7 and release or ccw press 8 simple but you have to figure out how its work. Joystick.pressButton(uint8_t button) Add delay or sens from library. My advice add delay 20 between 100ms Joystick.releaseButton(uint8_t button) Add delay short like 50. Otherwise you can use stm32f103c8t6 based FreeJoy really easy to use and large community they will answer your question at dc. I make my hotas with freejoy.
Otherwise you can use stm32f103c8t6 based FreeJoy really easy to use and large community they will answer your question at dc. I make my hotas with freejoy.
Arduino isn't compatible with freejoy, right?
No but you can use MMjoy.
This library does not focus on how to read values from input devices. It only focuses on making the Arduino appear to the host device as a game controller / joystick. Hopefully the comments above will help.
Hello Guys i am making a controller and i want to use this library. I have attached buttons succesfully but i also want to add a rotary. Any idea how to do it ? is it supported ?