aiie/teensy/teensy-paddles.h
2020-07-06 21:31:37 -04:00

21 lines
403 B
C++

#include <Arduino.h>
#include "physicalpaddles.h"
class TeensyPaddles : public PhysicalPaddles {
public:
TeensyPaddles(uint8_t p0pin, uint8_t p1pin, bool p0rev, bool p1rev);
virtual ~TeensyPaddles();
void setRev(bool p0rev, bool p1rev);
virtual uint8_t paddle0();
virtual uint8_t paddle1();
virtual void startReading();
uint8_t p0pin;
uint8_t p1pin;
bool p0rev;
bool p1rev;
};