jeffmorris

I tried to modify the example code for my robot but I think that there's a problem. I press a button or move the joystick and the Serial Monitor for Arduino Mega shows two letters or numbers instead of one letter or number. I didn't add the code that controls the servos on the robot. How can I fix the problem?

The joystick will continue to send commands if you hold it longer than the poll time. You'll want to look at either responding to multiple commands or perhaps add code that if you receive double commands within a short time ignore the duplicate.