tested software encoder
This commit is contained in:
1 parent
97114cb54d
commit
2e61dab738
6 files changed
+68
-10
No files matched your search
@@ -43,16 +43,16 @@
|
||||
class SwRotaryEncoder
|
||||
{
|
||||
public:
|
||||
SwRotaryEncoder(uint8_t pina, uint8_t pinb)
|
||||
SwRotaryEncoder(void)
|
||||
{
|
||||
_pina = pina;
|
||||
_pinb = pinb;
|
||||
_pina = _pinb = 0;
|
||||
|
||||
_a_last = 0;
|
||||
_last_read = _abs = 0;
|
||||
}
|
||||
|
||||
bool begin(void);
|
||||
bool begin(uint8_t pina, uint8_t pinb);
|
||||
void stop(void);
|
||||
|
||||
int32_t read(void);
|
||||
int32_t readAbs(void);
|
||||
|
||||
Reference in new issue
Block a user