Skip to content

Commit 35096a4

Browse files
authored
Merge pull request MHeironimus#160 from MHeironimus/version-2.0
Version 2.0.7
2 parents 6884663 + 8cb7b3f commit 35096a4

File tree

6 files changed

+14
-14
lines changed

6 files changed

+14
-14
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Arduino Joystick Library
22

3-
#### Version 2.0.6
3+
#### Version 2.0.7
44

55
This library can be used with Arduino IDE 1.6.6 (or above) to add one or more joysticks (or gamepads) to the list of HID devices an [Arduino Leonardo](https://www.arduino.cc/en/Main/ArduinoBoardLeonardo) or [Arduino Micro](https://www.arduino.cc/en/Main/ArduinoBoardMicro) (or any Arduino clone that is based on the ATmega32u4) can support. This library will also work with the [Arduino Due](https://www.arduino.cc/en/Main/ArduinoBoardDue), thanks to [@Palakis](https://github.com/Palakis). A complete list of supported boards can be found in the [Wiki](https://github.com/MHeironimus/ArduinoJoystickLibrary/wiki/Supported-Boards). This will not work with Arduino IDE 1.6.5 (or below) or with non-32u4 based Arduino devices (e.g. Arduino UNO, Arduino MEGA, etc.).
66

examples/DrivingControllerTest/DrivingControllerTest.ino

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ void setup() {
9797
}
9898

9999
pinMode(A0, INPUT_PULLUP);
100-
pinMode(13, OUTPUT);
100+
pinMode(LED_BUILTIN, OUTPUT);
101101
}
102102

103103
void loop() {
@@ -106,12 +106,12 @@ void loop() {
106106
if (digitalRead(A0) != 0)
107107
{
108108
// Turn indicator light off.
109-
digitalWrite(13, 0);
109+
digitalWrite(LED_BUILTIN, 0);
110110
return;
111111
}
112112

113113
// Turn indicator light on.
114-
digitalWrite(13, 1);
114+
digitalWrite(LED_BUILTIN, 1);
115115

116116
if (millis() >= gNextTime)
117117
{

examples/FlightControllerTest/FlightControllerTest.ino

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ void setup() {
125125
}
126126

127127
pinMode(A0, INPUT_PULLUP);
128-
pinMode(13, OUTPUT);
128+
pinMode(LED_BUILTIN, OUTPUT);
129129
}
130130

131131
void loop() {
@@ -134,12 +134,12 @@ void loop() {
134134
if (digitalRead(A0) != 0)
135135
{
136136
// Turn indicator light off.
137-
digitalWrite(13, 0);
137+
digitalWrite(LED_BUILTIN, 0);
138138
return;
139139
}
140140

141141
// Turn indicator light on.
142-
digitalWrite(13, 1);
142+
digitalWrite(LED_BUILTIN, 1);
143143

144144
if (millis() >= gNextTime)
145145
{

examples/JoystickTest/JoystickTest.ino

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ void setup() {
189189
}
190190

191191
pinMode(A0, INPUT_PULLUP);
192-
pinMode(13, OUTPUT);
192+
pinMode(LED_BUILTIN, OUTPUT);
193193
}
194194

195195
void loop() {
@@ -198,12 +198,12 @@ void loop() {
198198
if (digitalRead(A0) != 0)
199199
{
200200
// Turn indicator light off.
201-
digitalWrite(13, 0);
201+
digitalWrite(LED_BUILTIN, 0);
202202
return;
203203
}
204204

205205
// Turn indicator light on.
206-
digitalWrite(13, 1);
206+
digitalWrite(LED_BUILTIN, 1);
207207

208208
if (millis() >= gNextTime)
209209
{

examples/MultipleJoystickTest/MultipleJoystickTest.ino

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,20 +116,20 @@ void setup() {
116116
}
117117

118118
pinMode(A0, INPUT_PULLUP);
119-
pinMode(13, OUTPUT);
119+
pinMode(LED_BUILTIN, OUTPUT);
120120
}
121121

122122
void loop() {
123123

124124
// System Disabled
125125
if (digitalRead(A0) != 0)
126126
{
127-
digitalWrite(13, 0);
127+
digitalWrite(LED_BUILTIN, 0);
128128
return;
129129
}
130130

131131
// Turn indicator light on.
132-
digitalWrite(13, 1);
132+
digitalWrite(LED_BUILTIN, 1);
133133

134134
if (millis() >= gNextTime)
135135
{

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=Joystick
2-
version=2.0.6
2+
version=2.0.7
33
author=Matthew Heironimus
44
maintainer=Matthew Heironimus <[email protected]>
55
sentence=Allows an Arduino board with USB capabilities (e.g. Leonardo, Arduino Micro, Arudino Due, etc.) to appear as a Joystick or Gamepad.

0 commit comments

Comments
 (0)