|
RobotCore 1.0
WPILib port to raspberry Pi
|
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.
Definition at line 36 of file DigitalCounter.java.
| robotCore.DigitalCounter.DigitalCounter | ( | int | pin | ) |
| pin | - Specifies the pin to read |
Definition at line 49 of file DigitalCounter.java.
| 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.
Definition at line 116 of file DigitalCounter.java.
| int robotCore.DigitalCounter.get | ( | ) |
Gets the current number of transitions on the pin.
Definition at line 97 of file DigitalCounter.java.
| void robotCore.DigitalCounter.reset | ( | ) |
Resets the counter to zero
Definition at line 105 of file DigitalCounter.java.