2017-02-20 18:55:16 +00:00
|
|
|
#include <Arduino.h>
|
|
|
|
|
|
|
|
#include "physicalpaddles.h"
|
|
|
|
|
|
|
|
class TeensyPaddles : public PhysicalPaddles {
|
|
|
|
public:
|
2017-07-13 13:53:28 +00:00
|
|
|
TeensyPaddles(uint8_t p0pin, uint8_t p1pin, bool p0rev, bool p1rev);
|
2017-02-20 18:55:16 +00:00
|
|
|
virtual ~TeensyPaddles();
|
|
|
|
|
2020-07-07 01:31:37 +00:00
|
|
|
void setRev(bool p0rev, bool p1rev);
|
|
|
|
|
2017-02-20 18:55:16 +00:00
|
|
|
virtual uint8_t paddle0();
|
|
|
|
virtual uint8_t paddle1();
|
|
|
|
virtual void startReading();
|
2017-07-13 13:53:28 +00:00
|
|
|
|
|
|
|
uint8_t p0pin;
|
|
|
|
uint8_t p1pin;
|
|
|
|
bool p0rev;
|
|
|
|
bool p1rev;
|
2017-02-20 18:55:16 +00:00
|
|
|
};
|