74 void IrWidget::setup(
boolean pullup) {
81 #if defined(DEBUG_PIN) && defined(DEBUG_PORT)
82 sbi(
CAT2(DDR, DEBUG_PORT), DEBUG_PIN);
86 #ifdef PRR0 // for ATmega32U4 and ATmega2560
99 std::cout <<
"pinMode(CAPTURE_PIN_1, " << (pullup ?
"INPUT_PULLUP)" :
"INPUT)") << std::endl;
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.
Abstract base class for all IR readers, capturing or receiving.
virtual void dump(Stream &stream) const
Prints a textual representation of the received data to the Stream supplied.
boolean dumpFrequency(Stream &stream) const
If the frequency is sensible, print it to the stream and return true.