class InfraredPlug
The InfraredPlug class provides an interface to the Infrared Plug, to send and receive 36..40 kHz IR signals as used by various appliances and remote controls.
#include <Ports.h>
#include <RF12.h> // needed to avoid a linker error :(
class InfraredPlug;
Public API
- InfraredPlug configure() - change decoder settings (default is for NEC protocol)
- InfraredPlug poll() - must be called at least right after each IR signal change
- InfraredPlug done() - returns nibble count when a packet has been received
- InfraredPlug buffer() - access to the receive buffer
- InfraredPlug send() - send out a bit pattern