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, disable.
virtual void disable()
Stop reception of IR data.
Abstract base class for all IR readers, capturing or receiving.
int16_t markExcess
Microseconds subtracted from pulses and added to gaps.
IrReceiver(size_t bufSize, pin_t pin, boolean pullup=false, microseconds_t markExcess=defaultMarkExcess)
Constructor.
virtual boolean isReady() const =0
Returns true if there is collected data.