mirror of https://github.com/noisymime/Arduino.git
Updated KeyboardMessage example
This commit is contained in:
parent
b332904ee1
commit
b79ee023de
|
@ -1,21 +1,23 @@
|
||||||
/*
|
/*
|
||||||
Keyboard Button test
|
Keyboard Message test
|
||||||
|
|
||||||
For the Arduino Leonardo and Micro.
|
For the Arduino Leonardo and Micro.
|
||||||
|
|
||||||
Sends a text string when a button is pressed.
|
Sends a text string when a button is pressed.
|
||||||
|
|
||||||
The circuit:
|
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
|
* 10-kilohm resistor attached from pin 4 to ground
|
||||||
|
|
||||||
created 24 Oct 2011
|
created 24 Oct 2011
|
||||||
modified 27 Mar 2012
|
modified 27 Mar 2012
|
||||||
by Tom Igoe
|
by Tom Igoe
|
||||||
|
modified 11 Nov 2013
|
||||||
|
by Scott Fitzgerald
|
||||||
|
|
||||||
This example code is in the public domain.
|
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
|
const int buttonPin = 4; // input pin for pushbutton
|
||||||
|
|
Loading…
Reference in New Issue