Controls a SyRen motor driver running in Simplified Serial mode.
More...
Controls a SyRen motor driver running in Simplified Serial mode.
- Examples:
- SimpleExample/SimpleExample.ino, SoftwareSerial/SoftwareSerial.ino, and Sweep/Sweep.ino.
SyRenSimplified::SyRenSimplified |
( |
| ) |
|
Initializes a new instance of the SyRenSimplified class. The Arduino TX serial port is used.
SyRenSimplified::SyRenSimplified |
( |
Print & |
port | ) |
|
Initializes a new instance of the SyRenSimplified class. The specified serial port is used.
- Parameters
-
void SyRenSimplified::motor |
( |
int |
power | ) |
|
void SyRenSimplified::motor |
( |
byte |
motor, |
|
|
int |
power |
|
) |
| |
Sets the power of the specified motor.
- Parameters
-
motor | The motor number, 1. |
power | The power, between -127 and 127. |
void SyRenSimplified::stop |
( |
| ) |
|