Datasheet
6
5. Usage
5.1 With Arduino
The Grove - Thumb Joystick is an analog device that outputs analog signal ranging from 0 to 1023. That
requires us to use the analog port of Arduino to take the readings.
1. Connect the module to the A0/A1 of Grove - Basic Shield using the 4-pin grove cable.
2. Plug the Grove - Basic Shield into Arduino.
3. Connect Arduino to PC by using a USB cable.
4. Copy and paste code below to a new Arduino sketch. Please click here if you do not know how to upload.
/*
Thumb Joystick demo v1.0
by:http://www.seeedstudio.com
connect the module to A0&A1 for using;
*/
void setup() {
Serial.begin(9600);
}
void loop() {