This function changes ID of DYNAMIXEL.
const int DXL_DIR_PIN = 2; Dynamixel2Arduino dxl(Serial1, DXL_DIR_PIN); dxl.setID(1, 2);