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
Create a USBSabertoothSerial for the serial port you are using, and then attach a USBSabertooth for each motor driver you want to communicate with.
- Examples:
- 1.Basics/Freewheeling/Freewheeling.ino, 1.Basics/PowerOutputs/PowerOutputs.ino, 1.Basics/Simplest/Simplest.ino, 1.Basics/Sweep/Sweep.ino, 1.Basics/TankStyleSweep/TankStyleSweep.ino, 2.Settings/Ramping/Ramping.ino, 2.Settings/SerialTimeout/SerialTimeout.ino, 3.Advanced/Checksum/Checksum.ino, 3.Advanced/SharedLine/SharedLine.ino, and 3.Advanced/SoftwareSerial/SoftwareSerial.ino.
Constructor & Destructor Documentation
USBSabertoothSerial::USBSabertoothSerial | ( | Stream & | port = SabertoothTXPinSerial | ) |
Constructs a USBSabertoothSerial object.
- Parameters
-
port The serial port the motor driver is on. By default, this is the Arduino TX pin.
Member Function Documentation
|
inline |
Gets the serial port being used.
- Returns
- The serial port.