2 #include <hiduniversal.h>
5 // Satisfy IDE, which only needs to see the include statment in the ino.
7 #include <spi4teensy3.h>
11 #include "hidjoystickrptparser.h"
15 HIDUniversal Hid(&Usb);
16 JoystickEvents JoyEvents;
17 JoystickReportParser Joy(&JoyEvents);
21 #if !defined(__MIPSEL__)
22 while (!Serial); // Wait for serial port to connect - used on Leonardo, Teensy and other boards with built-in USB CDC serial connection
24 Serial.println("Start");
27 Serial.println("OSC did not start.");
31 if (!Hid.SetReportParser(0, &Joy))
32 ErrorMessage<uint8_t > (PSTR("SetReportParser"), 1);