Home › Forums › PS2X PlayStation 2 Controller Library Support Forum › Cant put analogue stick values into variable
for some reason when i use this piece of code
Serial.println(ps2x.Analog(PSS_LY), DEC);
lystick = (ps2x.Analog(PSS_LY), DEC);
Serial.println(lystick);
the first printed value coresponds to what the left stick is doing on the y axis but when i try to print the lystick variable value it comes out at 10 and never changes
any idea what im doing wrong?
should be
lystick = ps2x.Analog(PSS_LY);