1 /* Simplified Logitech Extreme 3D Pro Joystick Report Parser */
4 #include <hiduniversal.h>
7 #include "le3dp_rptparser.h"
9 // Satisfy the IDE, which needs to see the include statment in the ino too.
11 #include <spi4teensy3.h>
17 HIDUniversal Hid(&Usb);
18 JoystickEvents JoyEvents;
19 JoystickReportParser Joy(&JoyEvents);
23 Serial.begin( 115200 );
24 #if !defined(__MIPSEL__)
25 while (!Serial); // Wait for serial port to connect - used on Leonardo, Teensy and other boards with built-in USB CDC serial connection
27 Serial.println("Start");
30 Serial.println("OSC did not start.");
34 if (!Hid.SetReportParser(0, &Joy))
35 ErrorMessage<uint8_t>(PSTR("SetReportParser"), 1 );