Public Member Functions | Private Attributes
SyRenSimplified Class Reference

Controls a SyRen motor driver running in Simplified Serial mode. More...

#include <SyRenSimplified.h>

List of all members.

Public Member Functions

void motor (int power)
void motor (byte motor, int power)
void stop ()
 SyRenSimplified ()
 SyRenSimplified (Print &port)

Private Attributes

Print & _port

Detailed Description

Controls a SyRen motor driver running in Simplified Serial mode.

Definition at line 39 of file SyRenSimplified.h.


Constructor & Destructor Documentation

Initializes a new instance of the SyRenSimplified class. The Arduino TX serial port is used.

Definition at line 21 of file SyRenSimplified.cpp.

Initializes a new instance of the SyRenSimplified class. The specified serial port is used.

Parameters:
portThe port to use.

Definition at line 27 of file SyRenSimplified.cpp.


Member Function Documentation

void SyRenSimplified::motor ( int  power)

Sets the power of the motor.

Parameters:
powerThe 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.

Parameters:
motorThe motor number, 1.
powerThe power, between -127 and 127.

Definition at line 41 of file SyRenSimplified.cpp.

Stops.

Definition at line 46 of file SyRenSimplified.cpp.


Member Data Documentation

Print& SyRenSimplified::_port [private]

Definition at line 75 of file SyRenSimplified.h.


The documentation for this class was generated from the following files:


ric_mc
Author(s): RoboTiCan
autogenerated on Thu Aug 27 2015 14:39:51