NXC  Version 1.2.1 r5
 All Data Structures Files Functions Variables Groups Pages
char ConfigureTemperatureSensor ( const byte &  port,
const byte &  config 
)
inline

Configure LEGO Temperature sensor options.

Set various LEGO Temperature sensor options.

Parameters
portThe port to which the temperature sensor is attached. See the Input port constants group. You may use a constant or a variable.
configThe temperature sensor configuration settings. See LEGO temperature sensor constants for configuration constants that can be ORed or added together.
Returns
A status code indicating whether the read completed successfully or not. See CommLSReadType for possible Result values.
Examples:
ex_ConfigureTemperatureSensor.nxc.