mirror of
https://github.com/arduino/Arduino.git
synced 2025-02-20 14:54:31 +01:00
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.
|
||||
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user