#include <OzIDManager.h>
#include <OzRGBLedController.h>

// global pointers
OzIDManager* manager;
OzRGBLedController* rgbController;

// please select PWM pins
const int redPin = 3;
const int greenPin = 5;
const int bluePin = 6;
const int pwm = 9;

void setup()
{
  // wait for serial port
  Serial.begin(115200);

  // instantiate objects
  manager = new OzIDManager;
  manager->_sendACK = true;
  manager->_checksum = true;

  OzCommunication::setIDManager(manager);

  rgbController = new OzRGBLedController(redPin, greenPin, bluePin);
  rgbController->setPWM(pwm);

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

void loop()
{
   OzCommunication::communicate();
}

More information