NXC  Version 1.2.1 r5
 All Data Structures Files Functions Variables Groups Pages
bool SensorValueBool ( const byte  port)
inline

Read sensor boolean value.

Return the boolean value of a sensor on the specified port. Boolean conversion is either done based on preset cutoffs, or a slope parameter specified by calling SetSensorMode.

Parameters
portThe sensor port. See Input port constants. Must be a constant.
Returns
The sensor's boolean value.
Examples:
ex_SensorValueBool.nxc.