|
NXT C++ Bluetooth Library | ||||||
| FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
Sensor | +--Lightin light.h
Class for NXT light sensor
| Fields inherited from class Sensor |
|
| Constructor Summary | |
Light( Sensor_port port, Connection* connection, Led_mode led = LED_ON )
Constructor for the light sensor (percent mode and LED on is default) |
|
~Light()
|
|
| Method Summary | |
void |
set( unsigned int value )
Turn the LED on or off |
| Methods inherited from class Sensor |
init, read, read, print, set, get_port, get_mode, |
| Constructor Detail |
public Light( Sensor_port port, Connection* connection, Led_mode led = LED_ON );
port - [which sensor port to use]
*connection - [attach a connection]
mode - [set the sensor mode (default is percent mode)]
led - [set the LED mode to either LED_ON or LED_OFF (default is LED_ON)]public ~Light();
| Method Detail |
public void set( unsigned int value );
value - [use LED_ON or LED_OFF to determine the state of the LED]
|
NXT C++ Bluetooth Library | ||||||
| FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||