rename Qei to RotaryEncoder

This commit is contained in:
hathach committed 2017-09-14 00:52:28 +07:00
1 parent 7eb49b5476
commit 1530258aef
3 files changed
+5 -5

No files matched your search

+1 -1
View File
@@ -36,7 +36,7 @@
#include "HwRotaryEncoder.h"
class HwRotaryEncoder Qei;
class HwRotaryEncoder RotaryEncoder;
/**
* Initialize Hardware Encoder
+1 -1
View File
@@ -79,7 +79,7 @@ class HwRotaryEncoder
callback_t _cb;
};
extern class HwRotaryEncoder Qei;
extern class HwRotaryEncoder RotaryEncoder;
#endif /* HWROTARYENCODER_H_ */
@@ -25,15 +25,15 @@ void setup()
Serial.println("--------------------------------------------\n");
// Initialize Encoder
Qei.begin(PIN_A, PIN_B);
RotaryEncoder.begin(PIN_A, PIN_B);
// Start encoder
Qei.start();
RotaryEncoder.start();
}
void loop()
{
int value = Qei.read();
int value = RotaryEncoder.read();
if (value)
{