SyRen Simplified Serial Library for Arduino
Control your SyRen with Simplified Serial.
|
SyRenSimplified Class Reference
Controls a SyRen motor driver running in Simplified Serial mode. More...
Public Member Functions | |
SyRenSimplified () | |
SyRenSimplified (Print &port) | |
void | motor (int power) |
void | motor (byte motor, int power) |
void | stop () |
Detailed Description
Controls a SyRen motor driver running in Simplified Serial mode.
Constructor & Destructor Documentation
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
-
port The port to use.
Member Function Documentation
void SyRenSimplified::motor | ( | int | power | ) |
Sets the power of the motor.
- Parameters
-
power The power, between -127 and 127.
- Examples:
- SimpleExample/SimpleExample.ino, and Sweep/Sweep.ino.
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 | ( | ) |
Stops.