You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: examples/advanced/add_custom_SerialPortHandler/add_custom_SerialPortHandler.ino
+13-4
Original file line number
Diff line number
Diff line change
@@ -23,21 +23,30 @@
23
23
#defineDXL_SERIAL Serial
24
24
#defineDEBUG_SERIAL soft_serial
25
25
constuint8_t DXL_DIR_PIN = 2; // DYNAMIXEL Shield DIR PIN
26
-
#elif ARDUINO_OpenCM904 // Official ROBOTIS board with DXL circuit.
26
+
#elif defined(ARDUINO_SAM_DUE) // When using DynamixelShield
27
+
#defineDXL_SERIAL Serial
28
+
#defineDEBUG_SERIAL SerialUSB
29
+
constuint8_t DXL_DIR_PIN = 2; // DYNAMIXEL Shield DIR PIN
30
+
#elif defined(ARDUINO_SAM_ZERO) // When using DynamixelShield
31
+
#defineDXL_SERIAL Serial1
32
+
#defineDEBUG_SERIAL SerialUSB
33
+
constuint8_t DXL_DIR_PIN = 2; // DYNAMIXEL Shield DIR PIN
34
+
#elif defined(ARDUINO_OpenCM904) // When using official ROBOTIS board with DXL circuit.
27
35
#defineDXL_SERIAL Serial3 //OpenCM9.04 EXP Board's DXL port Serial. (Serial1 for the DXL port on the OpenCM 9.04 board)
28
36
#defineDEBUG_SERIAL Serial
29
37
constuint8_t DXL_DIR_PIN = 22; //OpenCM9.04 EXP Board's DIR PIN. (28 for the DXL port on the OpenCM 9.04 board)
30
-
#elif ARDUINO_OpenCR //Official ROBOTIS board with DXL circuit.
38
+
#elifdefined(ARDUINO_OpenCR)//When using official ROBOTIS board with DXL circuit.
31
39
// For OpenCR, there is a DXL Power Enable pin, so you must initialize and control it.
32
40
// Reference link : https://github.com/ROBOTIS-GIT/OpenCR/blob/master/arduino/opencr_arduino/opencr/libraries/DynamixelSDK/src/dynamixel_sdk/port_handler_arduino.cpp#L78
33
41
#defineDXL_SERIAL Serial3
34
42
#defineDEBUG_SERIAL Serial
35
-
constuint8_t DXL_DIR_PIN = 84; // OpenCR Board's DIR PIN.
36
-
#else//When using DynamixelShield
43
+
constuint8_t DXL_DIR_PIN = 84; // OpenCR Board's DIR PIN.
44
+
#else//Other boards when using DynamixelShield
37
45
#defineDXL_SERIAL Serial1
38
46
#defineDEBUG_SERIAL Serial
39
47
constuint8_t DXL_DIR_PIN = 2; // DYNAMIXEL Shield DIR PIN
Copy file name to clipboardExpand all lines: examples/advanced/operating_mode_advanced/operating_mode_advanced.ino
+12-3
Original file line number
Diff line number
Diff line change
@@ -23,21 +23,30 @@
23
23
#defineDXL_SERIAL Serial
24
24
#defineDEBUG_SERIAL soft_serial
25
25
constuint8_t DXL_DIR_PIN = 2; // DYNAMIXEL Shield DIR PIN
26
-
#elif ARDUINO_OpenCM904 // Official ROBOTIS board with DXL circuit.
26
+
#elif defined(ARDUINO_SAM_DUE) // When using DynamixelShield
27
+
#defineDXL_SERIAL Serial
28
+
#defineDEBUG_SERIAL SerialUSB
29
+
constuint8_t DXL_DIR_PIN = 2; // DYNAMIXEL Shield DIR PIN
30
+
#elif defined(ARDUINO_SAM_ZERO) // When using DynamixelShield
31
+
#defineDXL_SERIAL Serial1
32
+
#defineDEBUG_SERIAL SerialUSB
33
+
constuint8_t DXL_DIR_PIN = 2; // DYNAMIXEL Shield DIR PIN
34
+
#elif defined(ARDUINO_OpenCM904) // When using official ROBOTIS board with DXL circuit.
27
35
#defineDXL_SERIAL Serial3 //OpenCM9.04 EXP Board's DXL port Serial. (Serial1 for the DXL port on the OpenCM 9.04 board)
28
36
#defineDEBUG_SERIAL Serial
29
37
constuint8_t DXL_DIR_PIN = 22; //OpenCM9.04 EXP Board's DIR PIN. (28 for the DXL port on the OpenCM 9.04 board)
30
-
#elif ARDUINO_OpenCR //Official ROBOTIS board with DXL circuit.
38
+
#elifdefined(ARDUINO_OpenCR)//When using official ROBOTIS board with DXL circuit.
31
39
// For OpenCR, there is a DXL Power Enable pin, so you must initialize and control it.
32
40
// Reference link : https://github.com/ROBOTIS-GIT/OpenCR/blob/master/arduino/opencr_arduino/opencr/libraries/DynamixelSDK/src/dynamixel_sdk/port_handler_arduino.cpp#L78
33
41
#defineDXL_SERIAL Serial3
34
42
#defineDEBUG_SERIAL Serial
35
43
constuint8_t DXL_DIR_PIN = 84; // OpenCR Board's DIR PIN.
36
-
#else//When using DynamixelShield
44
+
#else//Other boards when using DynamixelShield
37
45
#defineDXL_SERIAL Serial1
38
46
#defineDEBUG_SERIAL Serial
39
47
constuint8_t DXL_DIR_PIN = 2; // DYNAMIXEL Shield DIR PIN
Copy file name to clipboardExpand all lines: examples/advanced/read_write_ControlTableItem/read_write_ControlTableItem.ino
+12-3
Original file line number
Diff line number
Diff line change
@@ -122,22 +122,31 @@
122
122
#defineDXL_SERIAL Serial
123
123
#defineDEBUG_SERIAL soft_serial
124
124
constuint8_t DXL_DIR_PIN = 2; // DYNAMIXEL Shield DIR PIN
125
-
#elif ARDUINO_OpenCM904 // Official ROBOTIS board with DXL circuit.
125
+
#elif defined(ARDUINO_SAM_DUE) // When using DynamixelShield
126
+
#defineDXL_SERIAL Serial
127
+
#defineDEBUG_SERIAL SerialUSB
128
+
constuint8_t DXL_DIR_PIN = 2; // DYNAMIXEL Shield DIR PIN
129
+
#elif defined(ARDUINO_SAM_ZERO) // When using DynamixelShield
130
+
#defineDXL_SERIAL Serial1
131
+
#defineDEBUG_SERIAL SerialUSB
132
+
constuint8_t DXL_DIR_PIN = 2; // DYNAMIXEL Shield DIR PIN
133
+
#elif defined(ARDUINO_OpenCM904) // When using official ROBOTIS board with DXL circuit.
126
134
#defineDXL_SERIAL Serial3 //OpenCM9.04 EXP Board's DXL port Serial. (Serial1 for the DXL port on the OpenCM 9.04 board)
127
135
#defineDEBUG_SERIAL Serial
128
136
constuint8_t DXL_DIR_PIN = 22; //OpenCM9.04 EXP Board's DIR PIN. (28 for the DXL port on the OpenCM 9.04 board)
129
-
#elif ARDUINO_OpenCR //Official ROBOTIS board with DXL circuit.
137
+
#elifdefined(ARDUINO_OpenCR)//When using official ROBOTIS board with DXL circuit.
130
138
// For OpenCR, there is a DXL Power Enable pin, so you must initialize and control it.
131
139
// Reference link : https://github.com/ROBOTIS-GIT/OpenCR/blob/master/arduino/opencr_arduino/opencr/libraries/DynamixelSDK/src/dynamixel_sdk/port_handler_arduino.cpp#L78
132
140
#defineDXL_SERIAL Serial3
133
141
#defineDEBUG_SERIAL Serial
134
142
constuint8_t DXL_DIR_PIN = 84; // OpenCR Board's DIR PIN.
135
-
#else//When using DynamixelShield
143
+
#else//Other boards when using DynamixelShield
136
144
#defineDXL_SERIAL Serial1
137
145
#defineDEBUG_SERIAL Serial
138
146
constuint8_t DXL_DIR_PIN = 2; // DYNAMIXEL Shield DIR PIN
Copy file name to clipboardExpand all lines: examples/advanced/slave/slave.ino
+12-3
Original file line number
Diff line number
Diff line change
@@ -23,21 +23,30 @@
23
23
#defineDXL_SERIAL Serial
24
24
#defineDEBUG_SERIAL soft_serial
25
25
constuint8_t DXL_DIR_PIN = 2; // DYNAMIXEL Shield DIR PIN
26
-
#elif ARDUINO_OpenCM904 // Official ROBOTIS board with DXL circuit.
26
+
#elif defined(ARDUINO_SAM_DUE) // When using DynamixelShield
27
+
#defineDXL_SERIAL Serial
28
+
#defineDEBUG_SERIAL SerialUSB
29
+
constuint8_t DXL_DIR_PIN = 2; // DYNAMIXEL Shield DIR PIN
30
+
#elif defined(ARDUINO_SAM_ZERO) // When using DynamixelShield
31
+
#defineDXL_SERIAL Serial1
32
+
#defineDEBUG_SERIAL SerialUSB
33
+
constuint8_t DXL_DIR_PIN = 2; // DYNAMIXEL Shield DIR PIN
34
+
#elif defined(ARDUINO_OpenCM904) // When using official ROBOTIS board with DXL circuit.
27
35
#defineDXL_SERIAL Serial3 //OpenCM9.04 EXP Board's DXL port Serial. (Serial1 for the DXL port on the OpenCM 9.04 board)
28
36
#defineDEBUG_SERIAL Serial
29
37
constuint8_t DXL_DIR_PIN = 22; //OpenCM9.04 EXP Board's DIR PIN. (28 for the DXL port on the OpenCM 9.04 board)
30
-
#elif ARDUINO_OpenCR //Official ROBOTIS board with DXL circuit.
38
+
#elifdefined(ARDUINO_OpenCR)//When using official ROBOTIS board with DXL circuit.
31
39
// For OpenCR, there is a DXL Power Enable pin, so you must initialize and control it.
32
40
// Reference link : https://github.com/ROBOTIS-GIT/OpenCR/blob/master/arduino/opencr_arduino/opencr/libraries/DynamixelSDK/src/dynamixel_sdk/port_handler_arduino.cpp#L78
33
41
#defineDXL_SERIAL Serial3
34
42
#defineDEBUG_SERIAL Serial
35
43
constuint8_t DXL_DIR_PIN = 84; // OpenCR Board's DIR PIN.
36
-
#else//When using DynamixelShield
44
+
#else//Other boards when using DynamixelShield
37
45
#defineDXL_SERIAL Serial1
38
46
#defineDEBUG_SERIAL Serial
39
47
constuint8_t DXL_DIR_PIN = 2; // DYNAMIXEL Shield DIR PIN
40
48
#endif
49
+
41
50
42
51
// Create a port object for DYNAMIXEL communication.
Copy file name to clipboardExpand all lines: examples/advanced/slave_callback/slave_callback.ino
+12-3
Original file line number
Diff line number
Diff line change
@@ -23,21 +23,30 @@
23
23
#defineDXL_SERIAL Serial
24
24
#defineDEBUG_SERIAL soft_serial
25
25
constuint8_t DXL_DIR_PIN = 2; // DYNAMIXEL Shield DIR PIN
26
-
#elif ARDUINO_OpenCM904 // Official ROBOTIS board with DXL circuit.
26
+
#elif defined(ARDUINO_SAM_DUE) // When using DynamixelShield
27
+
#defineDXL_SERIAL Serial
28
+
#defineDEBUG_SERIAL SerialUSB
29
+
constuint8_t DXL_DIR_PIN = 2; // DYNAMIXEL Shield DIR PIN
30
+
#elif defined(ARDUINO_SAM_ZERO) // When using DynamixelShield
31
+
#defineDXL_SERIAL Serial1
32
+
#defineDEBUG_SERIAL SerialUSB
33
+
constuint8_t DXL_DIR_PIN = 2; // DYNAMIXEL Shield DIR PIN
34
+
#elif defined(ARDUINO_OpenCM904) // When using official ROBOTIS board with DXL circuit.
27
35
#defineDXL_SERIAL Serial3 //OpenCM9.04 EXP Board's DXL port Serial. (Serial1 for the DXL port on the OpenCM 9.04 board)
28
36
#defineDEBUG_SERIAL Serial
29
37
constuint8_t DXL_DIR_PIN = 22; //OpenCM9.04 EXP Board's DIR PIN. (28 for the DXL port on the OpenCM 9.04 board)
30
-
#elif ARDUINO_OpenCR //Official ROBOTIS board with DXL circuit.
38
+
#elifdefined(ARDUINO_OpenCR)//When using official ROBOTIS board with DXL circuit.
31
39
// For OpenCR, there is a DXL Power Enable pin, so you must initialize and control it.
32
40
// Reference link : https://github.com/ROBOTIS-GIT/OpenCR/blob/master/arduino/opencr_arduino/opencr/libraries/DynamixelSDK/src/dynamixel_sdk/port_handler_arduino.cpp#L78
33
41
#defineDXL_SERIAL Serial3
34
42
#defineDEBUG_SERIAL Serial
35
43
constuint8_t DXL_DIR_PIN = 84; // OpenCR Board's DIR PIN.
36
-
#else//When using DynamixelShield
44
+
#else//Other boards when using DynamixelShield
37
45
#defineDXL_SERIAL Serial1
38
46
#defineDEBUG_SERIAL Serial
39
47
constuint8_t DXL_DIR_PIN = 2; // DYNAMIXEL Shield DIR PIN
40
48
#endif
49
+
41
50
42
51
// Create a port object for DYNAMIXEL communication.
Copy file name to clipboardExpand all lines: examples/basic/baudrate/baudrate.ino
+12-3
Original file line number
Diff line number
Diff line change
@@ -23,21 +23,30 @@
23
23
#defineDXL_SERIAL Serial
24
24
#defineDEBUG_SERIAL soft_serial
25
25
constuint8_t DXL_DIR_PIN = 2; // DYNAMIXEL Shield DIR PIN
26
-
#elif ARDUINO_OpenCM904 // Official ROBOTIS board with DXL circuit.
26
+
#elif defined(ARDUINO_SAM_DUE) // When using DynamixelShield
27
+
#defineDXL_SERIAL Serial
28
+
#defineDEBUG_SERIAL SerialUSB
29
+
constuint8_t DXL_DIR_PIN = 2; // DYNAMIXEL Shield DIR PIN
30
+
#elif defined(ARDUINO_SAM_ZERO) // When using DynamixelShield
31
+
#defineDXL_SERIAL Serial1
32
+
#defineDEBUG_SERIAL SerialUSB
33
+
constuint8_t DXL_DIR_PIN = 2; // DYNAMIXEL Shield DIR PIN
34
+
#elif defined(ARDUINO_OpenCM904) // When using official ROBOTIS board with DXL circuit.
27
35
#defineDXL_SERIAL Serial3 //OpenCM9.04 EXP Board's DXL port Serial. (Serial1 for the DXL port on the OpenCM 9.04 board)
28
36
#defineDEBUG_SERIAL Serial
29
37
constuint8_t DXL_DIR_PIN = 22; //OpenCM9.04 EXP Board's DIR PIN. (28 for the DXL port on the OpenCM 9.04 board)
30
-
#elif ARDUINO_OpenCR //Official ROBOTIS board with DXL circuit.
38
+
#elifdefined(ARDUINO_OpenCR)//When using official ROBOTIS board with DXL circuit.
31
39
// For OpenCR, there is a DXL Power Enable pin, so you must initialize and control it.
32
40
// Reference link : https://github.com/ROBOTIS-GIT/OpenCR/blob/master/arduino/opencr_arduino/opencr/libraries/DynamixelSDK/src/dynamixel_sdk/port_handler_arduino.cpp#L78
33
41
#defineDXL_SERIAL Serial3
34
42
#defineDEBUG_SERIAL Serial
35
43
constuint8_t DXL_DIR_PIN = 84; // OpenCR Board's DIR PIN.
36
-
#else//When using DynamixelShield
44
+
#else//Other boards when using DynamixelShield
37
45
#defineDXL_SERIAL Serial1
38
46
#defineDEBUG_SERIAL Serial
39
47
constuint8_t DXL_DIR_PIN = 2; // DYNAMIXEL Shield DIR PIN
Copy file name to clipboardExpand all lines: examples/basic/current_mode/current_mode.ino
+12-3
Original file line number
Diff line number
Diff line change
@@ -23,21 +23,30 @@
23
23
#defineDXL_SERIAL Serial
24
24
#defineDEBUG_SERIAL soft_serial
25
25
constuint8_t DXL_DIR_PIN = 2; // DYNAMIXEL Shield DIR PIN
26
-
#elif ARDUINO_OpenCM904 // Official ROBOTIS board with DXL circuit.
26
+
#elif defined(ARDUINO_SAM_DUE) // When using DynamixelShield
27
+
#defineDXL_SERIAL Serial
28
+
#defineDEBUG_SERIAL SerialUSB
29
+
constuint8_t DXL_DIR_PIN = 2; // DYNAMIXEL Shield DIR PIN
30
+
#elif defined(ARDUINO_SAM_ZERO) // When using DynamixelShield
31
+
#defineDXL_SERIAL Serial1
32
+
#defineDEBUG_SERIAL SerialUSB
33
+
constuint8_t DXL_DIR_PIN = 2; // DYNAMIXEL Shield DIR PIN
34
+
#elif defined(ARDUINO_OpenCM904) // When using official ROBOTIS board with DXL circuit.
27
35
#defineDXL_SERIAL Serial3 //OpenCM9.04 EXP Board's DXL port Serial. (Serial1 for the DXL port on the OpenCM 9.04 board)
28
36
#defineDEBUG_SERIAL Serial
29
37
constuint8_t DXL_DIR_PIN = 22; //OpenCM9.04 EXP Board's DIR PIN. (28 for the DXL port on the OpenCM 9.04 board)
30
-
#elif ARDUINO_OpenCR //Official ROBOTIS board with DXL circuit.
38
+
#elifdefined(ARDUINO_OpenCR)//When using official ROBOTIS board with DXL circuit.
31
39
// For OpenCR, there is a DXL Power Enable pin, so you must initialize and control it.
32
40
// Reference link : https://github.com/ROBOTIS-GIT/OpenCR/blob/master/arduino/opencr_arduino/opencr/libraries/DynamixelSDK/src/dynamixel_sdk/port_handler_arduino.cpp#L78
33
41
#defineDXL_SERIAL Serial3
34
42
#defineDEBUG_SERIAL Serial
35
43
constuint8_t DXL_DIR_PIN = 84; // OpenCR Board's DIR PIN.
36
-
#else//When using DynamixelShield
44
+
#else//Other boards when using DynamixelShield
37
45
#defineDXL_SERIAL Serial1
38
46
#defineDEBUG_SERIAL Serial
39
47
constuint8_t DXL_DIR_PIN = 2; // DYNAMIXEL Shield DIR PIN
Copy file name to clipboardExpand all lines: examples/basic/current_position_mode/current_position_mode.ino
+12-3
Original file line number
Diff line number
Diff line change
@@ -27,21 +27,30 @@
27
27
#defineDXL_SERIAL Serial
28
28
#defineDEBUG_SERIAL soft_serial
29
29
constuint8_t DXL_DIR_PIN = 2; // DYNAMIXEL Shield DIR PIN
30
-
#elif ARDUINO_OpenCM904 // Official ROBOTIS board with DXL circuit.
30
+
#elif defined(ARDUINO_SAM_DUE) // When using DynamixelShield
31
+
#defineDXL_SERIAL Serial
32
+
#defineDEBUG_SERIAL SerialUSB
33
+
constuint8_t DXL_DIR_PIN = 2; // DYNAMIXEL Shield DIR PIN
34
+
#elif defined(ARDUINO_SAM_ZERO) // When using DynamixelShield
35
+
#defineDXL_SERIAL Serial1
36
+
#defineDEBUG_SERIAL SerialUSB
37
+
constuint8_t DXL_DIR_PIN = 2; // DYNAMIXEL Shield DIR PIN
38
+
#elif defined(ARDUINO_OpenCM904) // When using official ROBOTIS board with DXL circuit.
31
39
#defineDXL_SERIAL Serial3 //OpenCM9.04 EXP Board's DXL port Serial. (Serial1 for the DXL port on the OpenCM 9.04 board)
32
40
#defineDEBUG_SERIAL Serial
33
41
constuint8_t DXL_DIR_PIN = 22; //OpenCM9.04 EXP Board's DIR PIN. (28 for the DXL port on the OpenCM 9.04 board)
34
-
#elif ARDUINO_OpenCR //Official ROBOTIS board with DXL circuit.
42
+
#elifdefined(ARDUINO_OpenCR)//When using official ROBOTIS board with DXL circuit.
35
43
// For OpenCR, there is a DXL Power Enable pin, so you must initialize and control it.
36
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
37
45
#defineDXL_SERIAL Serial3
38
46
#defineDEBUG_SERIAL Serial
39
47
constuint8_t DXL_DIR_PIN = 84; // OpenCR Board's DIR PIN.
40
-
#else//When using DynamixelShield
48
+
#else//Other boards when using DynamixelShield
41
49
#defineDXL_SERIAL Serial1
42
50
#defineDEBUG_SERIAL Serial
43
51
constuint8_t DXL_DIR_PIN = 2; // DYNAMIXEL Shield DIR PIN
Copy file name to clipboardExpand all lines: examples/basic/id/id.ino
+38-12
Original file line number
Diff line number
Diff line change
@@ -23,32 +23,44 @@
23
23
#defineDXL_SERIAL Serial
24
24
#defineDEBUG_SERIAL soft_serial
25
25
constuint8_t DXL_DIR_PIN = 2; // DYNAMIXEL Shield DIR PIN
26
-
#elif ARDUINO_OpenCM904 // Official ROBOTIS board with DXL circuit.
26
+
#elif defined(ARDUINO_SAM_DUE) // When using DynamixelShield
27
+
#defineDXL_SERIAL Serial
28
+
#defineDEBUG_SERIAL SerialUSB
29
+
constuint8_t DXL_DIR_PIN = 2; // DYNAMIXEL Shield DIR PIN
30
+
#elif defined(ARDUINO_SAM_ZERO) // When using DynamixelShield
31
+
#defineDXL_SERIAL Serial1
32
+
#defineDEBUG_SERIAL SerialUSB
33
+
constuint8_t DXL_DIR_PIN = 2; // DYNAMIXEL Shield DIR PIN
34
+
#elif defined(ARDUINO_OpenCM904) // When using official ROBOTIS board with DXL circuit.
27
35
#defineDXL_SERIAL Serial3 //OpenCM9.04 EXP Board's DXL port Serial. (Serial1 for the DXL port on the OpenCM 9.04 board)
28
36
#defineDEBUG_SERIAL Serial
29
37
constuint8_t DXL_DIR_PIN = 22; //OpenCM9.04 EXP Board's DIR PIN. (28 for the DXL port on the OpenCM 9.04 board)
30
-
#elif ARDUINO_OpenCR //Official ROBOTIS board with DXL circuit.
38
+
#elifdefined(ARDUINO_OpenCR)//When using official ROBOTIS board with DXL circuit.
31
39
// For OpenCR, there is a DXL Power Enable pin, so you must initialize and control it.
32
40
// Reference link : https://github.com/ROBOTIS-GIT/OpenCR/blob/master/arduino/opencr_arduino/opencr/libraries/DynamixelSDK/src/dynamixel_sdk/port_handler_arduino.cpp#L78
33
41
#defineDXL_SERIAL Serial3
34
42
#defineDEBUG_SERIAL Serial
35
43
constuint8_t DXL_DIR_PIN = 84; // OpenCR Board's DIR PIN.
36
-
#else//When using DynamixelShield
44
+
#else//Other boards when using DynamixelShield
37
45
#defineDXL_SERIAL Serial1
38
46
#defineDEBUG_SERIAL Serial
39
47
constuint8_t DXL_DIR_PIN = 2; // DYNAMIXEL Shield DIR PIN
40
48
#endif
49
+
41
50
42
-
constuint8_tDXL_ID = 1;
51
+
constuint8_tDEFAULT_DXL_ID = 1;
43
52
constfloat DXL_PROTOCOL_VERSION = 2.0;
44
53
45
54
Dynamixel2Arduino dxl(DXL_SERIAL, DXL_DIR_PIN);
46
55
47
56
voidsetup() {
48
57
// put your setup code here, to run once:
58
+
uint8_t present_id = DEFAULT_DXL_ID;
59
+
uint8_t new_id = 0;
49
60
50
61
// Use UART port of DYNAMIXEL Shield to debug.
51
62
DEBUG_SERIAL.begin(115200);
63
+
while(!DEBUG_SERIAL);
52
64
53
65
// Set Port baudrate to 57600bps. This has to match with DYNAMIXEL baudrate.
0 commit comments