adding Software Encoder

This commit is contained in:
hathach committed 2017-09-14 01:49:35 +07:00
1 parent 09e3dc3712
commit 507f60e63f
2 files changed
+67

No files matched your search

+17
View File
@@ -36,7 +36,24 @@
#ifndef SWROTARYENCODER_H_
#define SWROTARYENCODER_H_
#include "Arduino.h"
#define SW_ROTARY_ENCODER_MAX_INSTANCE 8
class SwRotaryEncoder
{
public:
SwRotaryEncoder(uint8_t pina, uint8_t pinb)
{
_pina = pina;
_pinb = pinb;
}
bool begin(void);
private:
uint8_t _pina, _pinb;
};