|
26 | 26 | SoftwareSerial soft_serial(7, 8); // DYNAMIXELShield UART RX/TX
|
27 | 27 | #define DXL_SERIAL Serial
|
28 | 28 | #define DEBUG_SERIAL soft_serial
|
29 |
| - const uint8_t DXL_DIR_PIN = 2; // DYNAMIXEL Shield DIR PIN |
| 29 | + const int DXL_DIR_PIN = 2; // DYNAMIXEL Shield DIR PIN |
30 | 30 | #elif defined(ARDUINO_SAM_DUE) // When using DynamixelShield
|
31 | 31 | #define DXL_SERIAL Serial
|
32 | 32 | #define DEBUG_SERIAL SerialUSB
|
33 |
| - const uint8_t DXL_DIR_PIN = 2; // DYNAMIXEL Shield DIR PIN |
| 33 | + const int DXL_DIR_PIN = 2; // DYNAMIXEL Shield DIR PIN |
34 | 34 | #elif defined(ARDUINO_SAM_ZERO) // When using DynamixelShield
|
35 | 35 | #define DXL_SERIAL Serial1
|
36 | 36 | #define DEBUG_SERIAL SerialUSB
|
37 |
| - const uint8_t DXL_DIR_PIN = 2; // DYNAMIXEL Shield DIR PIN |
| 37 | + const int DXL_DIR_PIN = 2; // DYNAMIXEL Shield DIR PIN |
38 | 38 | #elif defined(ARDUINO_OpenCM904) // When using official ROBOTIS board with DXL circuit.
|
39 | 39 | #define DXL_SERIAL Serial3 //OpenCM9.04 EXP Board's DXL port Serial. (Serial1 for the DXL port on the OpenCM 9.04 board)
|
40 | 40 | #define DEBUG_SERIAL Serial
|
41 |
| - const uint8_t DXL_DIR_PIN = 22; //OpenCM9.04 EXP Board's DIR PIN. (28 for the DXL port on the OpenCM 9.04 board) |
| 41 | + const int DXL_DIR_PIN = 22; //OpenCM9.04 EXP Board's DIR PIN. (28 for the DXL port on the OpenCM 9.04 board) |
42 | 42 | #elif defined(ARDUINO_OpenCR) // When using official ROBOTIS board with DXL circuit.
|
43 | 43 | // For OpenCR, there is a DXL Power Enable pin, so you must initialize and control it.
|
44 | 44 | // Reference link : https://github.com/ROBOTIS-GIT/OpenCR/blob/master/arduino/opencr_arduino/opencr/libraries/DynamixelSDK/src/dynamixel_sdk/port_handler_arduino.cpp#L78
|
45 | 45 | #define DXL_SERIAL Serial3
|
46 | 46 | #define DEBUG_SERIAL Serial
|
47 |
| - const uint8_t DXL_DIR_PIN = 84; // OpenCR Board's DIR PIN. |
| 47 | + const int DXL_DIR_PIN = 84; // OpenCR Board's DIR PIN. |
| 48 | +#elif defined(ARDUINO_OpenRB) // When using OpenRB-150 |
| 49 | + //OpenRB does not require the DIR control pin. |
| 50 | + #define DXL_SERIAL Serial1 |
| 51 | + #define DEBUG_SERIAL Serial |
| 52 | + const int DXL_DIR_PIN = -1; |
48 | 53 | #else // Other boards when using DynamixelShield
|
49 | 54 | #define DXL_SERIAL Serial1
|
50 | 55 | #define DEBUG_SERIAL Serial
|
51 |
| - const uint8_t DXL_DIR_PIN = 2; // DYNAMIXEL Shield DIR PIN |
| 56 | + const int DXL_DIR_PIN = 2; // DYNAMIXEL Shield DIR PIN |
52 | 57 | #endif
|
53 | 58 |
|
54 | 59 | /* XelInfoForBulkReadParam_t
|
|
0 commit comments