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

Read sensor type.

Return the type 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 type. See Sensor type constants.
Examples:
ex_SensorType.nxc.