FreeJoy-Team / FreeJoy

STM32F103 USB HID game device controller with flexible configuration
GNU General Public License v3.0
704 stars 134 forks source link

Multiple POV + Encoder(RKJXT1F42001) #213

Open InsaneNemesis opened 11 months ago

InsaneNemesis commented 11 months ago

I'm trying to use 2 POV RKJXT1F42001 switches with encoders. All my connection work, but the encoders are interfering with each other.

Encoder 1 is assigned to 44 and 56 Encoder 2 is assigned to 48 and 52

When rotating one encoder the opposite encoder is activated for a short pulse every other click.

I can get one encoder to work properly by assigning the other to act as button normal instead of encoder A and B. This allows it to function as intended without issue.

My goal is to have both encoders work correctly together and I believe there may be a software bug preventing this.

Freejoy

schematic

Log: 14:11:52.196: Logical button 56 pressed 14:11:52.216: Logical button 44 pressed 14:11:55.776: Logical button 56 pressed 14:11:55.806: Logical button 44 pressed 14:11:57.576: Logical button 44 pressed 14:11:57.586: Logical button 56 pressed 14:11:58.546: Logical button 56 pressed 14:11:58.566: Logical button 44 pressed 14:11:59.446: Logical button 44 pressed 14:11:59.456: Logical button 56 pressed 14:11:59.876: Logical button 44 pressed 14:11:59.896: Logical button 56 pressed 14:11:52.226: Logical button 56 unpressed 14:11:52.246: Logical button 44 unpressed 14:11:55.796: Logical button 56 unpressed 14:11:55.836: Logical button 44 unpressed 14:11:57.606: Logical button 44 unpressed 14:11:57.626: Logical button 56 unpressed 14:11:58.576: Logical button 56 unpressed 14:11:58.586: Logical button 44 unpressed 14:11:59.466: Logical button 44 unpressed 14:11:59.476: Logical button 56 unpressed 14:11:59.906: Logical button 44 unpressed 14:11:59.926: Logical button 56 unpressed