#include <OzIDManager.h>
#include <OzIRTransceiver.h>

OzIDManager* manager;
OzIRTransceiver* IRTransceiver;

void setup(){
    Serial.begin(115200);

    manager = new OzIDManager;
    manager->_sendACK = true;
    manager->_checksum = true;

    OzCommunication::setIDManager(manager);

	//Mega D9, Nano, Uno D3 pin
    IRTransceiver = new OzIRTransceiver(MODE::SEND);

    int x = 1;
    manager->sendLinkSetup();
    manager->PrintWelcomeLine(IRTransceiver, x++, "MyIRTransmitter");
}

void loop(){
    OzCommunication::communicate();
    IRTransceiver->ownLoop();
}

More information