NXC  Version 1.2.1 r5
 All Data Structures Files Functions Variables Groups Pages
void SetSensorLight ( const byte &  port,
bool  bActive = true 
)
inline

Configure a light sensor.

Configure the sensor on the specified port as an NXT light sensor.

Parameters
portThe port to configure. See Input port constants.
bActiveA boolean flag indicating whether to configure the port as an active or inactive light sensor. The default value for this optional parameter is true.
Examples:
ex_SetSensorLight.nxc.