The DigitalCounter class provides a way to count the number of transitions for a specific pin.
More...
The DigitalCounter class provides a way to count the number of transitions for a specific pin.
- Author
- John Gaby
◆ DigitalCounter()
robotCore.DigitalCounter.DigitalCounter |
( |
int | pin | ) |
|
- Parameters
-
pin | - Specifies the pin to read |
◆ copy()
Creates a copy of the specified counter. This counter will reference the same pin, but will nave an independent zero point.
- Returns
- Returns a copy of the counter.
◆ get()
int robotCore.DigitalCounter.get |
( |
| ) |
|
Gets the current number of transitions on the pin.
- Returns
- Returns the current count.
◆ reset()
void robotCore.DigitalCounter.reset |
( |
| ) |
|
Resets the counter to zero
The documentation for this class was generated from the following file:
- D:/SDASVN/2024/RaspberryPi/VSCode/Source/robotCore/DigitalCounter.java