Skip to content

Commit 7d3154b

Browse files
committed
Work around Arduino IDE bug
See: arduino/Arduino#1726
1 parent b46ead8 commit 7d3154b

File tree

40 files changed

+130
-62
lines changed

40 files changed

+130
-62
lines changed

examples/Bluetooth/BTHID/BTHID.ino

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@
88
#include <usbhub.h>
99
#include "KeyboardParser.h"
1010
#include "MouseParser.h"
11-
// Satisfy IDE, which only needs to see the include statment in the ino.
12-
#ifdef dobogusinclude
11+
12+
#ifdef dobogusinclude // Satisfy the IDE, which needs to see the include statment in the ino too.
13+
#include <SPI.h>
1314
#include <spi4teensy3.h>
1415
#endif
1516

examples/Bluetooth/PS3BT/PS3BT.ino

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@
66

77
#include <PS3BT.h>
88
#include <usbhub.h>
9-
// Satisfy IDE, which only needs to see the include statment in the ino.
10-
#ifdef dobogusinclude
9+
10+
#ifdef dobogusinclude // Satisfy the IDE, which needs to see the include statment in the ino too.
11+
#include <SPI.h>
1112
#include <spi4teensy3.h>
1213
#endif
1314

examples/Bluetooth/PS3Multi/PS3Multi.ino

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@
77

88
#include <PS3BT.h>
99
#include <usbhub.h>
10-
// Satisfy IDE, which only needs to see the include statment in the ino.
11-
#ifdef dobogusinclude
10+
11+
#ifdef dobogusinclude // Satisfy the IDE, which needs to see the include statment in the ino too.
12+
#include <SPI.h>
1213
#include <spi4teensy3.h>
1314
#endif
1415

examples/Bluetooth/PS3SPP/PS3SPP.ino

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@
1212
#include <PS3BT.h>
1313
#include <SPP.h>
1414
#include <usbhub.h>
15-
// Satisfy IDE, which only needs to see the include statment in the ino.
16-
#ifdef dobogusinclude
15+
16+
#ifdef dobogusinclude // Satisfy the IDE, which needs to see the include statment in the ino too.
17+
#include <SPI.h>
1718
#include <spi4teensy3.h>
1819
#endif
1920

examples/Bluetooth/PS4BT/PS4BT.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
#include <PS4BT.h>
88
#include <usbhub.h>
99

10-
// Satisfy IDE, which only needs to see the include statment in the ino.
11-
#ifdef dobogusinclude
10+
#ifdef dobogusinclude // Satisfy the IDE, which needs to see the include statment in the ino too.
11+
#include <SPI.h>
1212
#include <spi4teensy3.h>
1313
#endif
1414

examples/Bluetooth/SPP/SPP.ino

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@
66

77
#include <SPP.h>
88
#include <usbhub.h>
9-
// Satisfy IDE, which only needs to see the include statment in the ino.
10-
#ifdef dobogusinclude
9+
10+
#ifdef dobogusinclude // Satisfy the IDE, which needs to see the include statment in the ino too.
11+
#include <SPI.h>
1112
#include <spi4teensy3.h>
1213
#endif
1314

examples/Bluetooth/SPPMulti/SPPMulti.ino

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@
66

77
#include <SPP.h>
88
#include <usbhub.h>
9-
// Satisfy IDE, which only needs to see the include statement in the ino.
10-
#ifdef dobogusinclude
9+
10+
#ifdef dobogusinclude // Satisfy the IDE, which needs to see the include statment in the ino too.
11+
#include <SPI.h>
1112
#include <spi4teensy3.h>
1213
#endif
1314

examples/Bluetooth/Wii/Wii.ino

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@
66

77
#include <Wii.h>
88
#include <usbhub.h>
9-
// Satisfy IDE, which only needs to see the include statment in the ino.
10-
#ifdef dobogusinclude
9+
10+
#ifdef dobogusinclude // Satisfy the IDE, which needs to see the include statment in the ino too.
11+
#include <SPI.h>
1112
#include <spi4teensy3.h>
1213
#endif
1314

examples/Bluetooth/WiiIRCamera/WiiIRCamera.ino

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@ Otherwise, wire up a IR LED yourself.
1313

1414
#include <Wii.h>
1515
#include <usbhub.h>
16-
// Satisfy IDE, which only needs to see the include statment in the ino.
17-
#ifdef dobogusinclude
16+
17+
#ifdef dobogusinclude // Satisfy the IDE, which needs to see the include statment in the ino too.
18+
#include <SPI.h>
1819
#include <spi4teensy3.h>
1920
#endif
2021

examples/Bluetooth/WiiMulti/WiiMulti.ino

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@
77

88
#include <Wii.h>
99
#include <usbhub.h>
10-
// Satisfy IDE, which only needs to see the include statment in the ino.
11-
#ifdef dobogusinclude
10+
11+
#ifdef dobogusinclude // Satisfy the IDE, which needs to see the include statment in the ino too.
12+
#include <SPI.h>
1213
#include <spi4teensy3.h>
1314
#endif
1415

0 commit comments

Comments
 (0)