Created
August 21, 2015 18:25
-
-
Save raek/8455b99eee6a6d371730 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <AStar32U4Prime.h> | |
const char key = '.'; | |
Pushbutton buttonD(0); | |
void setup() { | |
Keyboard.begin(); | |
} | |
void loop() { | |
if (buttonD.getSingleDebouncedPress()) { Keyboard.press(key); } | |
if (!buttonD.isPressed()) { Keyboard.release(key); } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment