Skip to content

Commit e17a367

Browse files
committed
add error strings to target common problems
1 parent 40f0a65 commit e17a367

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/MIDIUSB.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,14 @@
88
#include <stdint.h>
99
#include <Arduino.h>
1010

11+
#if ARDUINO < 10606
12+
#error MIDIUSB requires Arduino IDE 1.6.6 or greater. Please update your IDE.
13+
#endif
14+
15+
#if !defined(USBCON)
16+
#error MIDIUSB can only be used with an USB MCU.
17+
#endif
18+
1119
#if defined(USBCON)
1220

1321
typedef struct

0 commit comments

Comments
 (0)