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 23
23
24
24
#include " HID.h"
25
25
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
+
26
34
#if !defined(_USING_HID)
27
35
28
36
#warning "Using legacy HID core (non pluggable)"
Original file line number Diff line number Diff line change 23
23
24
24
#include " HID.h"
25
25
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
+
26
34
#if !defined(_USING_HID)
27
35
28
36
#warning "Using legacy HID core (non pluggable)"
Original file line number Diff line number Diff line change 23
23
24
24
#include " HID.h"
25
25
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
+
26
34
#if !defined(_USING_HID)
27
35
28
36
#warning "Using legacy HID core (non pluggable)"
You can’t perform that action at this time.
0 commit comments