Skip to content

Instantly share code, notes, and snippets.

@houseofjeff
houseofjeff / ir_capture.ino
Last active October 20, 2021 18:19
Capture/Record IR remote signals with an Arduino
//------------------------------------------------------------------------------
// Interrupt 0 fires on pin D2
#define IR_PIN 2
// the maximum pulse we'll listen for
#define MAX_PULSE 30000
// the largest message we expect to receive (in bits)
#define MAX_MSG_SIZE 50