NXC  Version 1.2.1 r5
 All Data Structures Files Functions Variables Groups Pages
void SetSensor ( const byte &  port,
const unsigned int  config 
)
inline

Set sensor configuration.

Set the type and mode of the given sensor to the specified configuration, which must be a special constant containing both type and mode information.

See Also
SetSensorType(), SetSensorMode(), and ResetSensor()
Parameters
portThe port to configure. See Input port constants.
configThe configuration constant containing both the type and mode. See Combined sensor type and mode constants.
Examples:
ex_SetSensor.nxc.