|
Treehopper Java API
|
Quadrature rotary encoder. More...
Classes | |
| class | PositionChangedEventArgs |
| Rotary encoder position changed EventArgs. More... | |
| interface | PositionChangedEventHandler |
| Rotary encoder position changed event handler. More... | |
Public Member Functions | |
| RotaryEncoder (DigitalIn channelA, DigitalIn channelB, int stepsPerTick) | |
| long | getPosition () |
| void | setPosition (long position) |
| void | addPositionChangedEventHandler (PositionChangedEventHandler handler) |
| void | removePositionChangedEventHandler (PositionChangedEventHandler handler) |
Quadrature rotary encoder.
| io.treehopper.libraries.input.RotaryEncoder.RotaryEncoder | ( | DigitalIn | channelA, |
| DigitalIn | channelB, | ||
| int | stepsPerTick | ||
| ) |
| void io.treehopper.libraries.input.RotaryEncoder.addPositionChangedEventHandler | ( | PositionChangedEventHandler | handler | ) |
| long io.treehopper.libraries.input.RotaryEncoder.getPosition | ( | ) |
| void io.treehopper.libraries.input.RotaryEncoder.removePositionChangedEventHandler | ( | PositionChangedEventHandler | handler | ) |
| void io.treehopper.libraries.input.RotaryEncoder.setPosition | ( | long | position | ) |