NXC
Version 1.2.1 r5
Main Page
Related Pages
Modules
Data Structures
Files
Examples
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;
SetSensorLowspeed
(
S4
);
while
(
true
) {
ClearScreen
();
ReadSensorHTAngle
(
S4
, angle, accangle, rpm);
NumOut
(0,
LCD_LINE1
, angle);
NumOut
(0,
LCD_LINE2
, accangle);
NumOut
(0,
LCD_LINE3
, rpm);
Wait
(
MS_500
);
}
}
Generated by
1.8.2