IR raw emit for Arduino Zero

arduino zero infrared IR emit raw

Pre-requisites

This code takes in a raw dump of IR and emits it using Arduino Zero with SAMD21G micro-controller on a crystalless custom PCB.

Code

Download code
#include <IRLibSendBase.h>
#include <IRLib_HashRaw.h>
#include "./data.h"

IRsendRaw mySender;
#define IR_EMIT_PIN 9

void setup() {
  SerialUSB.begin(9600);
}

void loop() {
  delay(5000);
  SerialUSB.println("Sending ON");
  mySender.send(rawDataON, RAW_DATA_LEN, 38);
  SerialUSB.println("Sent Turn ON Aircon");

  delay(5000);
  SerialUSB.println("Sending OFF");
  mySender.send(rawDataOFF, RAW_DATA_LEN, 38);
  SerialUSB.println("Sent Turn OFF Aircon");
}

References