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

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

#ifndef DRAW_OPT_CLEAR_EOL
#define DRAW_OPT_CLEAR_EOL DRAW_OPT_NORMAL
#endif
task main() {
int x, y, z;
while (true) {
if (ReadSensorHTAccel(S2, x, y, z)) {
#if DRAW_OPT_CLEAR_EOL == DRAW_OPT_NORMAL
#endif
}
}
}