ECRobot C++ API for LEGO MINDSTORMS NXT  1.0.10
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:
portLEGO light connected port
Returns:
-

Member Function Documentation

void ecrobot::LegoLight::turnOff ( void  )

Turn off the light.

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

Turn on the light.

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

Turn on the light with brightness level.

Parameters:
brightness0(off)-100(max. brightness level)
Returns:
-

The documentation for this class was generated from the following file:
 All Classes Files Functions Variables Enumerations Enumerator Friends Defines