From 88b462ea49772c317909f01b534f2c9ac9c4d10d Mon Sep 17 00:00:00 2001 From: Jordy <33688327+jordy-u@users.noreply.github.com> Date: Thu, 25 Jul 2019 20:04:34 +0200 Subject: [PATCH] Replace hardcoded pin numbers with variables Replace pin numbers "A0" and "A1" with variables "xAxis" and "yAxis". Variables "xAxis" and "yAxis" were created, but never used. I changed the hardcoded pin numbers to these variables to avoid confusion and to make the code more consistent. --- .../Mouse/JoystickMouseControl/JoystickMouseControl.ino | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/shared/examples/09.USB/Mouse/JoystickMouseControl/JoystickMouseControl.ino b/build/shared/examples/09.USB/Mouse/JoystickMouseControl/JoystickMouseControl.ino index aa608f870..87164e7d2 100644 --- a/build/shared/examples/09.USB/Mouse/JoystickMouseControl/JoystickMouseControl.ino +++ b/build/shared/examples/09.USB/Mouse/JoystickMouseControl/JoystickMouseControl.ino @@ -69,8 +69,8 @@ void loop() { lastSwitchState = switchState; // read and scale the two axes: - int xReading = readAxis(A0); - int yReading = readAxis(A1); + int xReading = readAxis(xAxis); + int yReading = readAxis(yAxis); // if the mouse control state is active, move the mouse: if (mouseIsActive) {