Keyestudio 4DOF Manual page 99

Robot arm kit
Hide thumbs Also See for 4DOF:
Table of Contents

Advertisement

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)

Advertisement

Table of Contents
loading

Table of Contents