96
set the pin to Input status and then read the measured value 1
(pressed down) or 0 (not press). Check out the value printed
on the serial monitor.
Connection Diagram:
Test Code 3:
**************************************************************************************
const int right_X = A2; // define the right X pin to A2
const int right_Y = A5; // define the right Y pin to A5
const int right_key = 7; //define the right key pin to 7(that is the value Z)
Need help?
Do you have a question about the 4DOF and is the answer not in the manual?
Questions and answers