www.keyestudio.com
}
delay(50);
}
*************************************************************************************************
Test Result:
Stack the drive shield onto V4.0 and upload the code. Connecting the PS2
Joypad, open the serial monitor and set the baud rate to 57600. When
press down the key or push the rocker, you should see the corresponding
character showed on the monitor.
5.2 PS2 Joypad Control
Description:
In the previous section, we have showed how to use Joystick module to
control the robot arm. It is almost the same for you to control the 4DOF
robot arm using the PS2 Joypad.
189