CrazyRedMachine / LUFAHybridFightstick

Nintendo switch AND XInput controller for Arduino Leonardo and Pro Micro
GNU General Public License v3.0
52 stars 16 forks source link

Left analog moves left and right stick at the same time. #22

Closed Makushimo closed 6 months ago

Makushimo commented 6 months ago

Hello, I enabled the analogs, I connected a magnetic sensor (MLX90333) that replaces the potentiometers; I connected it to pins A0 and A1. The problem is that the sensor moves the left and right lever at the same time. I would only need the left lever. Thank you (I used Google translator, I hope you can understand me)

CrazyRedMachine commented 6 months ago

nothing is plugged on A2/A3 ? then it will pickup random noise.

you can force right analog to center by adding

buttonStatus[AXISRX] = 128;
buttonStatus[AXISRY] = 128;

right after line 288, after axisRead(); and before #endif

Makushimo commented 6 months ago

There is nothing connected to A2/A3. It worked! Thank you very much for your help and your great work.

CrazyRedMachine commented 6 months ago

welcome, glad it's working :D enjoy!