uint16_t microseconds_t
Type for durations in micro seconds.
uint8_t pin_t
Type for GPIO pin, compatible with Arduino libs.
static Board * getInstance()
void setPinMode(pin_t pin, PinMode mode)
Abstract base class for all IR readers, capturing or receiving.
virtual void disable()
Stop reception of IR data.
virtual bool isReady() const =0
Returns true if there is collected data.
int16_t markExcess
Microseconds subtracted from pulses and added to gaps.
virtual void enable()
Start reception of IR data.
virtual void receive()
Convenience function: enable, wait until data is collected or timeout has occured,...
IrReceiver(size_t bufSize, pin_t pin, bool pullup=false, microseconds_t markExcess=defaultMarkExcess)
Constructor.