#include <otRotaryEncoder.h>
Public Member Functions | |
| otRotaryEncoder () | |
| void | init (U8 encoderChannel, U8 switchBit, U8 sen=4) |
| S16 | read (bool invert=true) |
| S16 | counts (bool invert=true) |
| void | clear () |
| bool | button (bool release=true) |
| void | release () |
| bool | check () |
|
|
Create the class |
|
|
Read switch button status
|
|
|
Check button action
|
|
|
Clear encoder counts |
|
|
Read encoder counts
|
|
||||||||||||||||
|
Init the library
|
|
|
Read encoder
|
|
|
Wait button release |