Skip to content

Instantly share code, notes, and snippets.

@houmei
houmei / spacekey.ino
Created May 23, 2012 14:57
Arduino IDE1.0.1 Leonardo USB-HID Keyboard test
/* Button for Keyboard (Arduino Leonardo only) */
/*
Button
Turns on and off a light emitting diode(LED) connected to digital
pin 13, when pressing a pushbutton attached to pin 2.
The circuit: