MHeironimus / ArduinoJoystickLibrary

An Arduino library that adds one or more joysticks to the list of HID devices an Arduino Leonardo or Arduino Micro can support.
GNU Lesser General Public License v3.0
2.07k stars 403 forks source link

Tiller Wheel with Rotary encoder / potentiometer #174

Closed V3nom536 closed 3 years ago

V3nom536 commented 3 years ago

I was projecting this tiller wheel replica and came up that the best solution is by using a rotary encoder or a potentiometer, which one should i use and then can i use them with this library? Im really new to arduino and stuff like this so im sorry for any "stupid" question i made / i'll make. I red that attaching the central pin of a potentiometer to an input pin would of course make the board to read the values generated by the pot but can i use this lib for translating the analogic inputs into "movements" in the virtual joystick of w10? Thanks for further replies and again, sorry for any stupid question if made :)

MHeironimus commented 3 years ago

This library is not concerned with what or how you read values, it only focuses on taking values and converting them into something a computer will see as a Joystick.

V3nom536 commented 3 years ago

Ok perfect so, ill assign my pot to an axis and it should work fine. Thanks so much