Updated KeyboardMessage example

This commit is contained in:
Scott Fitzgerald 2013-11-11 16:47:49 +04:00
parent b332904ee1
commit b79ee023de
1 changed files with 5 additions and 3 deletions

View File

@ -1,21 +1,23 @@
/*
Keyboard Button test
Keyboard Message test
For the Arduino Leonardo and Micro.
Sends a text string when a button is pressed.
The circuit:
* pushbutton attached from pin 2 to +5V
* pushbutton attached from pin 4 to +5V
* 10-kilohm resistor attached from pin 4 to ground
created 24 Oct 2011
modified 27 Mar 2012
by Tom Igoe
modified 11 Nov 2013
by Scott Fitzgerald
This example code is in the public domain.
http://www.arduino.cc/en/Tutorial/KeyboardButton
http://www.arduino.cc/en/Tutorial/KeyboardMessage
*/
const int buttonPin = 4; // input pin for pushbutton