ecrobot::LegoLight Class Reference

Lego Light class. More...

#include <LegoLight.h>

List of all members.

Public Member Functions

 LegoLight (ePortM port)
 Constructor.
void turnOn (void)
 Turn on the light.
void turnOn (U8 brightness)
 Turn on the light with brightness level.
void turnOff (void)
 Turn off the light.

Detailed Description

Lego Light class.


Constructor & Destructor Documentation

ecrobot::LegoLight::LegoLight ( ePortM  port  )  [explicit]

Constructor.

Note:
This class must be constructed as a global object. Otherwise, a device assertion will be displayed
in the LCD when the object is constructed as a non global object.
When the object is destructed while the system is shut down, the device is de-activated automatically.

Parameters:
port LEGO light connected port
Returns:
-

Member Function Documentation

void ecrobot::LegoLight::turnOff ( void   ) 

Turn off the light.

Parameters:
- 
Returns:
-
void ecrobot::LegoLight::turnOn ( U8  brightness  ) 

Turn on the light with brightness level.

Parameters:
brightness 0(off)-100(max. brightness level)
Returns:
-
void ecrobot::LegoLight::turnOn ( void   ) 

Turn on the light.

Parameters:
- 
Returns:
-

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

Generated on Tue Dec 29 11:38:02 2009 for ECRobot C++ API for LEGO MINDSTORMS NXT by  doxygen 1.6.1