Sabertooth Simplified Serial Library for Arduino: C:/Code/src/contract/sabertooth-arduino/SabertoothSimplified/SabertoothSimplified.h Source File
From Sabertooth Simplified Serial Library
|
Sabertooth Simplified Serial Library for Arduino
Control your Sabertooth with Simplified Serial.
|
19 #ifndef SabertoothSimplified_h
20 #define SabertoothSimplified_h
22 #if defined(ARDUINO) && ARDUINO >= 100
29 #define SabertoothTXPinSerial Serial1 // Arduino Leonardo has TX->1 on Serial1, not Serial.
31 #define SabertoothTXPinSerial Serial
33 #define SyRenTXPinSerial SabertoothTXPinSerial
60 void motor(
int power);
67 void motor(byte motor,
int power);
73 void drive(
int power);
87 void mixedMode(
boolean enable);
89 void raw(byte motor,
int power);
93 int _mixedDrive, _mixedTurn;
94 boolean _mixedDriveSet, _mixedTurnSet;