Your robotic problems solved here.
Post comments on this article at www.servomagazine.com/
SERVO 03.2016 11
Listing 1. Arduino sketch.
main() is executed as a loop in an Arduino
sketch, when the code reaches the end of
main(), it starts up again at the beginning.
We will start out reading the
joystick values, and then deciding
what to do with them.
Xval = analogRead(A1);
Yval = analogRead(A0);
Joystick example code for ITead Joystick
#define LEFT 0
#define RIGHT 1
#define UP 2
#define DOWN 10
#define CENTER 11