30 #if defined (DOXYGEN) || !defined(ARDUINO) || defined ARDUINO_ARCH_AVR 76 void IrWidget::setup(
bool pullup) {
83 #if defined(DEBUG_PIN) && defined(DEBUG_PORT) 84 sbi(
CAT2(DDR, DEBUG_PORT), DEBUG_PIN);
88 #ifdef PRR0 // for ATmega32U4 and ATmega2560 101 std::cout <<
"pinMode(CAPTURE_PIN_1, " << (pullup ?
"INPUT_PULLUP)" :
"INPUT)") << std::endl;
105 #endif // ARDUINO_ARCH_AVR
virtual void setBeginningTimeout(milliseconds_t timeOut)
uint16_t microseconds_t
Type for durations in micro seconds.
void setMarkExcess(int16_t markExcess_)
Sets the markExcess, a number (possibly negative) to be subtracted from the on-durations and added to...
uint16_t milliseconds_t
Type for durations in milli seconds.
virtual void dump(Stream &stream) const
Prints a textual representation of the received data to the Stream supplied.
Abstract base class for all IR readers, capturing or receiving.
bool dumpFrequency(Stream &stream) const
If the frequency is sensible, print it to the stream and return true.
milliseconds_t beginningTimeout
int16_t markExcess
Microseconds subtracted from pulses and added to gaps.