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

Set sensor type.

Set a sensor's type, which must be one of the predefined sensor type constants. 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
SetSensorMode(), SetSensor()
Parameters
portThe port to configure. See Input port constants.
typeThe desired sensor type. See Sensor type constants.
Examples:
ex_SetSensorType.nxc.