Skip to content

Commit 3a490c1

Browse files
committed
Documentation update
1 parent 63a22f7 commit 3a490c1

File tree

3 files changed

+11
-10
lines changed

3 files changed

+11
-10
lines changed

Joystick/examples/HatSwitchTest/HatSwitchTest.ino

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
// they are pressed.
66
//
77
// Pin Mappings:
8-
// 4 - Hat Switch #0 UP
9-
// 5 - Hat Switch #0 RIGHT
10-
// 6 - Hat Switch #0 DOWN
11-
// 7 - Hat Switch #0 LEFT
12-
// 8 - Hat Switch #1 UP
13-
// 9 - Hat Switch #1 RIGHT
8+
// 4 - Hat Switch #0 UP
9+
// 5 - Hat Switch #0 RIGHT
10+
// 6 - Hat Switch #0 DOWN
11+
// 7 - Hat Switch #0 LEFT
12+
// 8 - Hat Switch #1 UP
13+
// 9 - Hat Switch #1 RIGHT
1414
// 10 - Hat Switch #1 DOWN
1515
// 11 - Hat Switch #1 LEFT
1616
//

Joystick/examples/JoystickButton/JoystickButton.ino

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
// Simple example application that shows how to read four Arduino
22
// digital pins and map them to the USB Joystick library.
33
//
4-
// The digital pins 9, 10, 11, and 12 are grounded when they are pressed.
4+
// Ground digital pins 9, 10, 11, and 12 to press the joystick
5+
// buttons 0, 1, 2, and 3.
56
//
67
// NOTE: This sketch file is for use with Arduino Leonardo and
78
// Arduino Micro only.

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ Copy the Joystick folder to the Arduino libraries folder (typically `%userprofil
2424
## Examples
2525
The following example Arduino sketch files are included in this library:
2626

27-
- `JoystickTest` - Simple test of the Joystick library. Exercises many of the Joystick library functions when pin A0 is grounded.
28-
- `MultipleJoystickTest` - Creates 4 Joysticks using the library and exercises the first 16 buttons and X and Y axis when pin A0 is grounded.
29-
- `JoystickButton` - Creates a Joystick and maps pin 9 to button 0, pin 10 to button 1, pin 11 to button 2, and pin 12 to button 3.
27+
- `JoystickTest` - Simple test of the Joystick library. It exercises many of the Joystick library’s functions when pin A0 is grounded.
28+
- `MultipleJoystickTest` - Creates 4 Joysticks using the library and exercises the first 16 buttons, the X axis, and the Y axis of each joystick when pin A0 is grounded.
29+
- `JoystickButton` - Creates a Joystick and maps pin 9 to button 0 of the joystick, pin 10 to button 1, pin 11 to button 2, and pin 12 to button 3.
3030
- `JoystickKeyboard` - Creates a Joystick and a Keyboard. Maps pin 9 to Joystick Button 0, pin 10 to Joystick Button 1, pin 11 to Keyboard key 1, and pin 12 to Keyboard key 2.
3131
- `DrivingControllerTest` - Creates a Driving Controller and tests 4 buttons, the Steering, Brake, and Accelerator when pin A0 is grounded.
3232
- `FlightControllerTest` - Creates a Flight Controller and tests 32 buttons, the X and Y axis, the Throttle, and the Rudder when pin A0 is grounded.

0 commit comments

Comments
 (0)