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