SyRen Simplified Serial Library for Arduino: SyRenSimplified Class Reference

SyRen Simplified Serial Library for Arduino

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.

Examples:
SimpleExample/SimpleExample.ino, SoftwareSerial/SoftwareSerial.ino, and Sweep/Sweep.ino.

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
portThe port to use.

Member Function Documentation

void SyRenSimplified::motor ( int  power)

Sets the power of the motor.

Parameters
powerThe 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
motorThe motor number, 1.
powerThe power, between -127 and 127.
void SyRenSimplified::stop ( )

Stops.