#include <OzOpticalGateController.h>
#include <OzIDManager.h>

// global pointers
OzIDManager* manager;
OzOpticalGateController* opticalGate;

uint8_t _ledPin = 3;
uint8_t _photoPin = 2;


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

  manager = new OzIDManager;
  manager->_sendACK = true;
  manager->_checksum = true;
  
  OzCommunication::setIDManager(manager);

  opticalGate = new OzOpticalGateController(_ledPin, _photoPin);

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

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

More information