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
I have a problem when I add a Joystick.
I have a potentiometer plug into one Input and I have 3.3V and ground plugged on the other 2 connector of the potentiometer.
When I write in the code (anywhere). I try to hard code the value and still the button don't work
Joystick.sliderLeft(analogRead(x));
The slider work but the button don't work anymore.
I have 2 rotary encoder that work perfectly when I remove this part of the code.
Here's my loop (the function for the CheckEncoder and ReadMatrix work when the Joystick.SliderLeft is commented
void loop() {
// put your main code here, to run repeatedly:
isBtnPress = false;
CheckAllEncoders();
ReadMatrix();
if(isBtnPress == true){
ActivateBtns();
}
Joystick.sliderLeft(50);
}
EDIT:
I just realise that even when the slider is not in the code when I first open the Game Controller I have the 2 slider at 50% and as soon as I press a button (rotary Encoder) the slider go back to 0
BEFORE PRESSING A BUTTON
AFTER PRESSING A BUTTON
The text was updated successfully, but these errors were encountered:
I have a problem when I add a Joystick.
I have a potentiometer plug into one Input and I have 3.3V and ground plugged on the other 2 connector of the potentiometer.
When I write in the code (anywhere). I try to hard code the value and still the button don't work
Joystick.sliderLeft(analogRead(x));
The slider work but the button don't work anymore.
I have 2 rotary encoder that work perfectly when I remove this part of the code.
Here's my loop (the function for the CheckEncoder and ReadMatrix work when the Joystick.SliderLeft is commented
EDIT:
I just realise that even when the slider is not in the code when I first open the Game Controller I have the 2 slider at 50% and as soon as I press a button (rotary Encoder) the slider go back to 0
BEFORE PRESSING A BUTTON
AFTER PRESSING A BUTTON
The text was updated successfully, but these errors were encountered: