tested software encoder

This commit is contained in:
hathach committed 2017-09-14 23:09:05 +07:00
1 parent 97114cb54d
commit 2e61dab738
6 files changed
+68 -10

No files matched your search

+4 -4
View File
@@ -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);