Ozeki 10

#include <OzIDManager.h>
#include <OzKeyboardController.h>

OzIDManager* manager;
OzKeyboardController* keyboardController;

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

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

  OzCommunication::setIDManager(manager);

  keyboardController = new OzKeyboardController();

  //continues if keyboard has been detected
  int x = 1;
  manager->sendLinkSetup();
  manager->PrintWelcomeLine(keyboardController, x++, "MyKeyboard");
  Wire.begin();
}

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

More information


|