File tree Expand file tree Collapse file tree 3 files changed +24
-0
lines changed
Expand file tree Collapse file tree 3 files changed +24
-0
lines changed Original file line number Diff line number Diff line change 2323
2424#include " HID.h"
2525
26+ #if ARDUINO < 10606
27+ #error The Joystick library requires Arduino IDE 1.6.6 or greater. Please update your IDE.
28+ #endif
29+
30+ #if !defined(USBCON)
31+ #error The Joystick library can only be used with a USB MCU (e.g. Arduino Leonardo, Arduino Micro, etc.).
32+ #endif
33+
2634#if !defined(_USING_HID)
2735
2836#warning "Using legacy HID core (non pluggable)"
Original file line number Diff line number Diff line change 2323
2424#include " HID.h"
2525
26+ #if ARDUINO < 10606
27+ #error The Joystick2 library requires Arduino IDE 1.6.6 or greater. Please update your IDE.
28+ #endif
29+
30+ #if !defined(USBCON)
31+ #error The Joystick2 library can only be used with a USB MCU (e.g. Arduino Leonardo, Arduino Micro, etc.).
32+ #endif
33+
2634#if !defined(_USING_HID)
2735
2836#warning "Using legacy HID core (non pluggable)"
Original file line number Diff line number Diff line change 2323
2424#include " HID.h"
2525
26+ #if ARDUINO < 10606
27+ #error The Joystick3 library requires Arduino IDE 1.6.6 or greater. Please update your IDE.
28+ #endif
29+
30+ #if !defined(USBCON)
31+ #error The Joystick3 library can only be used with a USB MCU (e.g. Arduino Leonardo, Arduino Micro, etc.).
32+ #endif
33+
2634#if !defined(_USING_HID)
2735
2836#warning "Using legacy HID core (non pluggable)"
You can’t perform that action at this time.
0 commit comments