Skip to content

Commit 9981435

Browse files
facchinmcmaglie
authored andcommitted
add includes to USB examples
1 parent 5cc7c10 commit 9981435

File tree

7 files changed

+22
-0
lines changed

7 files changed

+22
-0
lines changed

Diff for: build/shared/examples/09.USB/Keyboard/KeyboardLogout/KeyboardLogout.ino

+3
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@
2929
#define WINDOWS 1
3030
#define UBUNTU 2
3131

32+
#include "Keyboard.h"
33+
#include "HID.h"
34+
3235
// change this to match your platform:
3336
int platform = OSX;
3437

Diff for: build/shared/examples/09.USB/Keyboard/KeyboardMessage/KeyboardMessage.ino

+3
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@
2020
http://www.arduino.cc/en/Tutorial/KeyboardMessage
2121
*/
2222

23+
#include "Keyboard.h"
24+
#include "HID.h"
25+
2326
const int buttonPin = 4; // input pin for pushbutton
2427
int previousButtonState = HIGH; // for checking the state of a pushButton
2528
int counter = 0; // button push counter

Diff for: build/shared/examples/09.USB/Keyboard/KeyboardReprogram/KeyboardReprogram.ino

+3
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@
2727
http://www.arduino.cc/en/Tutorial/KeyboardReprogram
2828
*/
2929

30+
#include "Keyboard.h"
31+
#include "HID.h"
32+
3033
// use this option for OSX.
3134
// Comment it out if using Windows or Linux:
3235
char ctrlKey = KEY_LEFT_GUI;

Diff for: build/shared/examples/09.USB/Keyboard/KeyboardSerial/KeyboardSerial.ino

+3
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
http://www.arduino.cc/en/Tutorial/KeyboardSerial
2020
*/
2121

22+
#include "Keyboard.h"
23+
#include "HID.h"
24+
2225
void setup() {
2326
// open the serial port:
2427
Serial.begin(9600);

Diff for: build/shared/examples/09.USB/KeyboardAndMouseControl/KeyboardAndMouseControl.ino

+4
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@
2121
2222
*/
2323

24+
#include "Keyboard.h"
25+
#include "Mouse.h"
26+
#include "HID.h"
27+
2428
// set pin numbers for the five buttons:
2529
const int upButton = 2;
2630
const int downButton = 3;

Diff for: build/shared/examples/09.USB/Mouse/ButtonMouseControl/ButtonMouseControl.ino

+3
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@
2424
2525
*/
2626

27+
#include "Mouse.h"
28+
#include "HID.h"
29+
2730
// set pin numbers for the five buttons:
2831
const int upButton = 2;
2932
const int downButton = 3;

Diff for: build/shared/examples/09.USB/Mouse/JoystickMouseControl/JoystickMouseControl.ino

+3
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@
2828
2929
*/
3030

31+
#include "Mouse.h"
32+
#include "HID.h"
33+
3134
// set pin numbers for switch, joystick axes, and LED:
3235
const int switchPin = 2; // switch to turn on and off mouse control
3336
const int mouseButton = 3; // input pin for the mouse pushButton

0 commit comments

Comments
 (0)