Skip to content

Commit ddb0497

Browse files
authored
Merge pull request #9099 from jordy-u/patch-1
Replace hardcoded pin numbers with variables
2 parents be5e01c + 7d851b4 commit ddb0497

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build/shared/examples/09.USB/Mouse/JoystickMouseControl/JoystickMouseControl.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ void loop() {
6969
lastSwitchState = switchState;
7070

7171
// read and scale the two axes:
72-
int xReading = readAxis(A0);
73-
int yReading = readAxis(A1);
72+
int xReading = readAxis(xAxis);
73+
int yReading = readAxis(yAxis);
7474

7575
// if the mouse control state is active, move the mouse:
7676
if (mouseIsActive) {

0 commit comments

Comments
 (0)