Kangaroo Library for Arduino
Use reliable Packet Serial to communicate with your Kangaroo.
Public Member Functions | List of all members
KangarooSerial Class Reference

Create a KangarooSerial for the serial port you are using, and then attach a KangarooChannel for each channel you want to communicate with. More...

Public Member Functions

 KangarooSerial (Stream &port)
 
Stream & port ()
 

Detailed Description

Create a KangarooSerial for the serial port you are using, and then attach a KangarooChannel for each channel you want to communicate with.

Examples:
1.Basics/MixedMode/MixedMode.ino, 1.Basics/Movement/Movement.ino, 1.Basics/SpeedControl/SpeedControl.ino, 2.Settings/SerialTimeout/SerialTimeout.ino, 3.Advanced/PowerDown/PowerDown.ino, 3.Advanced/ProgrammaticTune/ProgrammaticTune.ino, and 3.Advanced/Streaming/Streaming.ino.

Constructor & Destructor Documentation

KangarooSerial::KangarooSerial ( Stream &  port)

Constructs a KangarooSerial object.

Parameters
portThe serial port the motion controller is on.

Member Function Documentation

Stream& KangarooSerial::port ( )
inline

Gets the serial port being used.

Returns
The serial port.