USB Sabertooth Packet Serial Library for Arduino: USBSabertoothSerial Class Reference

USB Sabertooth Packet Serial Library for Arduino

USB Sabertooth Packet Serial Library for Arduino
Control your USB-enabled Sabertooth with reliable Packet Serial.
USBSabertoothSerial Class Reference

Create a USBSabertoothSerial for the serial port you are using, and then attach a USBSabertooth for each motor driver you want to communicate with. More...

Public Member Functions

 USBSabertoothSerial (Stream &port=SabertoothTXPinSerial)
 
Stream & port ()
 

Detailed Description

Constructor & Destructor Documentation

USBSabertoothSerial::USBSabertoothSerial ( Stream &  port = SabertoothTXPinSerial)

Constructs a USBSabertoothSerial object.

Parameters
portThe serial port the motor driver is on. By default, this is the Arduino TX pin.

Member Function Documentation

Stream& USBSabertoothSerial::port ( )
inline

Gets the serial port being used.

Returns
The serial port.