off-period, also called gap
uint16_t microseconds_t
Type for durations in micro seconds.
static const microseconds_t defaultMarkExcess
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.
irdata_t
Enum for the duration types.
Abstract base class for demodulating IR receivers.
Abstract base class for all IR readers, capturing or receiving.
on-period, also called flash
static const pin_t defaultPin
This file defines some general data types that are used in the library.
static const boolean invertingSensor
Are we using inverting sensor, like most TSOPs?
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.