Skip to content

Commit edf9682

Browse files
committed
Support spi4teensy3 in all examples automatically
1 parent ac12126 commit edf9682

File tree

27 files changed

+292
-186
lines changed

27 files changed

+292
-186
lines changed

examples/Bluetooth/PS3BT/PS3BT.ino

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
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
11+
#include <spi4teensy3.h>
12+
#endif
913

1014
USB Usb;
1115
//USBHub Hub1(&Usb); // Some dongles have a hub inside

examples/Bluetooth/PS3Multi/PS3Multi.ino

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
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
12+
#include <spi4teensy3.h>
13+
#endif
1014

1115
USB Usb;
1216
//USBHub Hub1(&Usb); // Some dongles have a hub inside

examples/Bluetooth/PS3SPP/PS3SPP.ino

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@
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
17+
#include <spi4teensy3.h>
18+
#endif
1519

1620
USB Usb;
1721
//USBHub Hub1(&Usb); // Some dongles have a hub inside

examples/Bluetooth/SPP/SPP.ino

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
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
11+
#include <spi4teensy3.h>
12+
#endif
913

1014
USB Usb;
1115
//USBHub Hub1(&Usb); // Some dongles have a hub inside

examples/Bluetooth/SPPMulti/SPPMulti.ino

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
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
11+
#include <spi4teensy3.h>
12+
#endif
913

1014
USB Usb;
1115
//USBHub Hub1(&Usb); // Some dongles have a hub inside

examples/Bluetooth/Wii/Wii.ino

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
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
11+
#include <spi4teensy3.h>
12+
#endif
913

1014
USB Usb;
1115
//USBHub Hub1(&Usb); // Some dongles have a hub inside

examples/Bluetooth/WiiIRCamera/WiiIRCamera.ino

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ 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
18+
#include <spi4teensy3.h>
19+
#endif
1620

1721
#ifndef WIICAMERA // Used to check if WIICAMERA is defined
1822
#error "Uncomment WIICAMERA in Wii.h to use this example"

examples/Bluetooth/WiiMulti/WiiMulti.ino

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
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
12+
#include <spi4teensy3.h>
13+
#endif
1014

1115
USB Usb;
1216
//USBHub Hub1(&Usb); // Some dongles have a hub inside

examples/Bluetooth/WiiUProController/WiiUProController.ino

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
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
11+
#include <spi4teensy3.h>
12+
#endif
913

1014
USB Usb;
1115
//USBHub Hub1(&Usb); // Some dongles have a hub inside

examples/HID/USBHIDBootKbd/USBHIDBootKbd.ino

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
#include <hidboot.h>
22
#include <usbhub.h>
3+
// Satisfy IDE, which only needs to see the include statment in the ino.
4+
#ifdef dobogusinclude
5+
#include <spi4teensy3.h>
6+
#endif
37

48
class KbdRptParser : public KeyboardReportParser
59
{

0 commit comments

Comments
 (0)