NXC  Version 1.2.1 r5
 All Data Structures Files Functions Variables Groups Pages
ex_ReadSensorHTAngle.nxc

This is an example of how to use the ReadSensorHTAngle function.

task main()
{
int angle, rpm;
long accangle;
while (true) {
ReadSensorHTAngle(S4, angle, accangle, rpm);
NumOut(0, LCD_LINE1, angle);
NumOut(0, LCD_LINE2, accangle);
NumOut(0, LCD_LINE3, rpm);
}
}