Open Codecraft, add Arduino support, and drag a main procedure to working area. Link Seeeduino/Arduino to your PC via an USB cable. Plug the Base Shield to your Seeeduino/Arduino. Connect a Grove - Thumb Joystick to port A0 of a Base Shield. The output value from the analog port of Arduino can be converted to the corresponding resistance by using the formula:R=(float)(1023-sensorValue)*10/sensorValue. You can check the values of the output analog signals by opening the Serial Monitor. * Thumb Joystick demo v1.0 by: connect the module to A0&A1 for using */ void setup ()
0 Comments
Leave a Reply. |