Created
June 26, 2022 17:55
-
-
Save KushagraKarira/cad8a96a2168c77f25ede56c18094291 to your computer and use it in GitHub Desktop.
Automate GNOME 2048 using Digispark Attiny85
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 "DigiKeyboard.h" | |
void setup() { | |
// don't need to set anything up to use DigiKeyboard | |
} | |
void loop() { | |
// this is generally not necessary but with some older systems it seems to | |
// prevent missing the first character after a delay: | |
DigiKeyboard.sendKeyStroke(0); | |
DigiKeyboard.sendKeyStroke(22); | |
DigiKeyboard.sendKeyStroke(4); | |
DigiKeyboard.sendKeyStroke(22); | |
DigiKeyboard.sendKeyStroke(7); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment