NXC
Version 1.2.1 r5
|
|
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.
port | The port to configure. See Input port constants. |
mode | The desired sensor mode. See Sensor mode constants. |