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

Read HiTechnic compass.

Read the compass heading value of the HiTechnic Compass sensor on the specified port. The port must be configured as a Lowspeed port before using this function.

Parameters
portThe sensor port. See Input port constants.
Returns
The compass heading.
Examples:
ex_SensorHTCompass.nxc.