NXC  Version 1.2.1 r5
 All Data Structures Files Functions Variables Groups Pages
void SetSensorMode ( const byte &  port,
byte  mode 
)
inline

Set sensor mode.

Set a sensor's mode, which should be one of the predefined sensor mode constants. A slope parameter for boolean conversion, if desired, may be added to the mode. After changing the type or the mode of a sensor port you must call ResetSensor to give the firmware time to reconfigure the sensor port.

See Also
SetSensorType(), SetSensor()
Parameters
portThe port to configure. See Input port constants.
modeThe desired sensor mode. See Sensor mode constants.
Examples:
ex_SetSensorMode.nxc.