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
Constructor & Destructor Documentation
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
Turn off the light.
- Parameters:
-
- Returns:
- -
Turn on the light.
- Parameters:
-
- Returns:
- -
Turn on the light with brightness level.
- Parameters:
-
brightness | 0(off)-100(max. brightness level) |
- Returns:
- -
The documentation for this class was generated from the following file: