RobotCore
Robot Core Documentation
|
The DigitalCounter class provides a way to count the number of transitions for a specific pin. More...
Public Member Functions | |
DigitalCounter (int pin) | |
int | get () |
void | reset () |
DigitalCounter | copy () |
The DigitalCounter class provides a way to count the number of transitions for a specific pin.
robotCore.DigitalCounter.DigitalCounter | ( | int | pin | ) |
pin | - Specifies the pin to read |
DigitalCounter robotCore.DigitalCounter.copy | ( | ) |
Creates a copy of the specified counter. This counter will reference the same pin, but will nave an independent zero point.
int robotCore.DigitalCounter.get | ( | ) |
Gets the current number of transitions on the pin.
void robotCore.DigitalCounter.reset | ( | ) |
Resets the counter to zero