From e828236692b87ed8bde6d79c5b222bdadd29f823 Mon Sep 17 00:00:00 2001 From: Tom Igoe Date: Mon, 16 Jan 2012 15:28:04 -0500 Subject: [PATCH] Updated Joystick Mouse Control with hardware pin descriptions Did it in the correct branch this time. --- .../10.Mouse/JoystickMouseControl/JoystickMouseControl.ino | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/build/shared/examples/10.Mouse/JoystickMouseControl/JoystickMouseControl.ino b/build/shared/examples/10.Mouse/JoystickMouseControl/JoystickMouseControl.ino index 760562928..384597904 100644 --- a/build/shared/examples/10.Mouse/JoystickMouseControl/JoystickMouseControl.ino +++ b/build/shared/examples/10.Mouse/JoystickMouseControl/JoystickMouseControl.ino @@ -4,6 +4,10 @@ Controls the mouse from a joystick on an Arduino Leonardo. Uses a pushbutton to turn on and off mouse control. + Hardware: + * 2-axis joystick connected to pins A1 and A2 + * pushbutton connected to pin D6 + The mouse movement is always relative. This sketch reads two analog inputs that range from 0 to 1023 (or less on either end) and translates them into ranges of -60 to 60. @@ -16,6 +20,7 @@ you can turn on and off mouse control. created 15 Sept 2011 + updated 16 Jan 2012 by Tom Igoe this code is in the public domain