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

Read sensor mode.

Return the mode of a sensor on the specified port.

Parameters
portThe sensor port. See Input port constants. A variable whose value is the desired sensor port may also be used.
Returns
The sensor's mode. See Sensor mode constants.
Examples:
ex_SensorMode.nxc.