ir_nec_4/ir_nec_4.h
#ifndef IR_NEC_4_h
#define IR_NEC_4_h
#include "Arduino.h"
//#define IR_NEC_4_DEBUG // prints debugging information to serial console
class IR_NEC_4 {
private:
byte lastkey;
byte decode();
public:
IR_NEC_4(int); // pass ir receiver data pin no
void enable(); // call in setup(), starts timer interrupt
boolean checkResults(); // fetch and parse result, if any
byte getResults(); // get/remove already fetched and parsed result or try to do so now
};
#endif