Skip to main content Link Menu Expand (external link) Document Search Copy Copied

AddDevice::AddDevice(string name, vex::device* device)

This constructor adds a device to the global connectedDevices array.

Parameters

  • name - The name of the device.
  • device - The device to add to the array.

Example

motor motor1 = motor(PORT1);
AddDevice motor1AddDevice("motor1", &motor1);