Hi, I am trying to interface Arduino mega with ps2 dualshock wired cytron shield.I used the code from examples for read joystick but I am getting only 255 not matter how I move the joystick and for read button it is not reading any input. I used serial.println to show yes when button is pressed (value= o)and no if it is not (value =1 ) but it is printing only no whether I press the button or not.I have set the baud rate at 9600 in the shield and code. the rx pin is at D2 and tx at D3 of shield and same in code.
What should i do?