Tutorial.KeyboardAndMouseControl History

Hide minor edits - Show changes to markup

August 28, 2015, at 04:20 PM by Simone Maiocchi -
Changed lines 1-7 from:
to:
Added lines 20-21:

Hardware Required

Deleted line 22:

Hardware Required

Changed lines 28-29 from:
to:
Changed lines 33-34 from:
to:
Added line 36:
Changed lines 44-45 from:
to:
Changed lines 67-73 from:
to:
July 29, 2015, at 03:28 PM by Simone Maiocchi -
Changed lines 56-58 from:
to:
July 08, 2015, at 07:49 PM by Simone Maiocchi -
Changed lines 31-32 from:
to:
Added lines 40-41:

click the images to enlarge

July 08, 2015, at 07:47 PM by Simone Maiocchi -
Changed lines 1-2 from:

Examples > USB (Leonardo)

to:
Changed lines 8-11 from:

This example illustrates the use of the Mouse and keyboard libraries together. Five momentary switches act as directional buttons for your cursor. When a button is pressed, the cursor on your screen will move, and a keypress will be sent to the computer. Once you have the Leonardo programmed and wired up, open up your favorite text editor to see the results.

NB: When you use these libraries, the Arduino takes over your computer's keyboard and mouse!

to:

This example illustrates the use of the Mouse and Keyboard libraries together. Five momentary switches act as directional buttons for your cursor. When a button is pressed, the cursor on your screen will move, and a keypress, corresponding to the letter associated with the direction, will be sent to the computer. Once you have the Leonardo, Micro or Due programmed and wired up, open up your favorite text editor to see the results.

NB: When you use the Mouse and Keyboard library functions, the Arduino takes over your computer's cursor! To insure you don't lose control of your computer while running a sketch with this function, make sure to set up a controller before you call Mouse.move().

Changed lines 13-14 from:

Hardware Required

  • Arduino Leonardo or Arduino Due board
to:

Hardware Required

  • Arduino Leonardo, Micro or Arduino Due board
  • 5 pushbuttons
  • 5 10k ohm resistors
  • hook-up wires
Changed lines 19-22 from:
  • Five pushbuttons
  • Five 10-kiloohm resistors

Software Required

to:

Software Required

Changed lines 25-29 from:

Circuit
Attach one end of the the pushbuttons to pins 2, 3, 4, 5, and 6 on the Leonardo. Attach the other end to +5V. Use the resistors as pull-downs, providing a reference to ground for the switches. Attach them from the pin connecting to the Leonardo to ground.

Once you've programmed your Leonardo, unplug the USB cable and open a text editor. Connect your Leonardo board to your computer and press the buttons to write in the document as you move the cursor.

to:

Circuit

Attach one end of the the pushbuttons to pins 2, 3, 4, 5, and 6 on the board. Attach the other end to +5V. Use the resistors as pull-downs, providing a reference to ground for the switches. Attach them from the pin connecting to the board to ground.

Once you've programmed your board, unplug the USB cable and open a text editor. Connect your board to your computer and press the buttons to write in the document as you move the cursor.

Changed line 40 from:

Code

to:

Code

Changed line 48 from:

See Also

to:

See Also

October 31, 2012, at 09:43 PM by Scott Fitzgerald -
Changed lines 38-41 from:
to:
Deleted lines 40-130:
October 22, 2012, at 11:15 AM by Federico -
Changed line 10 from:
  • Arduino Leonardo board
to:
  • Arduino Leonardo or Arduino Due board
Changed line 43 from:
 Controls the mouse from five pushbuttons on an Arduino Leonardo.
to:
 Controls the mouse from five pushbuttons on an Arduino Leonardo and Arduino Due.
May 21, 2012, at 07:42 PM by Scott Fitzgerald -
Changed lines 38-133 from:
to:
May 21, 2012, at 07:27 PM by Scott Fitzgerald -
Changed line 38 from:
to:
May 21, 2012, at 07:25 PM by Scott Fitzgerald -
Changed line 38 from:
to:
May 21, 2012, at 07:22 PM by Scott Fitzgerald -
Changed line 38 from:
to:
May 21, 2012, at 07:20 PM by Scott Fitzgerald -
Changed line 38 from:
to:
May 21, 2012, at 07:20 PM by Scott Fitzgerald -
Changed line 38 from:
to:
May 21, 2012, at 07:20 PM by Scott Fitzgerald -
Changed line 38 from:
to:
Changed line 45 from:
to:
May 02, 2012, at 04:13 PM by Scott Fitzgerald -
Changed line 38 from:
to:
April 27, 2012, at 06:53 PM by Scott Fitzgerald -
Changed lines 6-7 from:

NB: When you use these libraries, the Arduino takes over your computer's keyboard and mouse! To insure you don't lose control of your computer while running a sketch with this function, make sure to set up a reliable control system before you call Keyboard.print().

to:

NB: When you use these libraries, the Arduino takes over your computer's keyboard and mouse!

Deleted line 44:
April 27, 2012, at 05:35 PM by Scott Fitzgerald -
Added line 45:
April 27, 2012, at 05:34 PM by Scott Fitzgerald -
Added line 45:
April 27, 2012, at 05:31 PM by Scott Fitzgerald -
Changed lines 31-32 from:
to:
April 27, 2012, at 05:30 PM by Scott Fitzgerald -
Changed line 12 from:
  • Five momentary pushbuttons
to:
  • Five pushbuttons
Changed lines 21-22 from:

Attach one end of the the pushbuttons to pins 2, 3, 4, 5, and 6 on the Leonardo. Attach the other end to +5V. Use the resistors as pull-downs, providing a reference to ground for the switches. Attach them from the pin connecting to the Leonardo 4 to ground.

to:

Attach one end of the the pushbuttons to pins 2, 3, 4, 5, and 6 on the Leonardo. Attach the other end to +5V. Use the resistors as pull-downs, providing a reference to ground for the switches. Attach them from the pin connecting to the Leonardo to ground.

April 27, 2012, at 05:29 PM by Scott Fitzgerald -
Changed lines 21-22 from:

Attach one end of the the pushbuttons to pins 4, 5, 6, 7, and 8 on the Leonardo. Attach the other end to +5V. Use the resistors as pull-downs, providing a reference to ground for the switches. Attach them from the pin connecting to the Leonardo 4 to ground.

to:

Attach one end of the the pushbuttons to pins 2, 3, 4, 5, and 6 on the Leonardo. Attach the other end to +5V. Use the resistors as pull-downs, providing a reference to ground for the switches. Attach them from the pin connecting to the Leonardo 4 to ground.

April 27, 2012, at 03:39 PM by Scott Fitzgerald - page creation
Added lines 1-44:

Share