Keyestudio 4DOF Manual page 218

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

Advertisement

Test Code 10:
*************************************************************************************************************************
#include <PS2X_lib.h> //for v1.6
/******************************************************************
* set pins connected to PS2 controller:
*
- 1e column: original
*
- 2e colmun: Stef?
* replace pin numbers by the ones you use
******************************************************************/
#define PS2_DAT
13 //14
#define PS2_CMD
11 //15
#define PS2_SEL
10 //16
#define PS2_CLK
12 //17
/******************************************************************
* select modes of PS2 controller:
*
- pressures = analog reading of push-butttons
*
- rumble
= motor rumbling
* uncomment 1 of the lines for each mode selection
******************************************************************/
//#define pressures
true
#define pressures
false
215

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents