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

Clear a sensor value.

Clear the value of a sensor - only affects sensors that are configured to measure a cumulative quantity such as rotation or a pulse count.

Parameters
portThe port to clear. See Input port constants.
Examples:
ex_ClearSensor.nxc.