Controls a SyRen motor driver running in Simplified Serial mode. More...
#include <SyRenSimplified.h>
Public Member Functions | |
void | motor (int power) |
void | motor (byte motor, int power) |
void | stop () |
SyRenSimplified () | |
SyRenSimplified (Print &port) | |
Private Attributes | |
Print & | _port |
Controls a SyRen motor driver running in Simplified Serial mode.
Definition at line 39 of file SyRenSimplified.h.
Initializes a new instance of the SyRenSimplified class. The Arduino TX serial port is used.
Definition at line 21 of file SyRenSimplified.cpp.
SyRenSimplified::SyRenSimplified | ( | Print & | port | ) |
Initializes a new instance of the SyRenSimplified class. The specified serial port is used.
port | The port to use. |
Definition at line 27 of file SyRenSimplified.cpp.
void SyRenSimplified::motor | ( | int | power | ) |
Sets the power of the motor.
power | The power, between -127 and 127. |
Definition at line 33 of file SyRenSimplified.cpp.
void SyRenSimplified::motor | ( | byte | motor, |
int | power | ||
) |
Sets the power of the specified motor.
motor | The motor number, 1. |
power | The power, between -127 and 127. |
Definition at line 41 of file SyRenSimplified.cpp.
void SyRenSimplified::stop | ( | ) |
Stops.
Definition at line 46 of file SyRenSimplified.cpp.
Print& SyRenSimplified::_port [private] |
Definition at line 75 of file SyRenSimplified.h.