Created
March 29, 2021 22:21
-
-
Save tboydar/3893c918c5f5ad1ae91d132771f850b4 to your computer and use it in GitHub Desktop.
WIN+1
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
#define OSX 0 | |
#define WINDOWS 1 | |
#define UBUNTU 2 | |
#include "Keyboard.h" | |
int platform = OSX; | |
void setup() { | |
pinMode(2, INPUT_PULLUP); | |
Keyboard.begin(); | |
delay(3000); | |
Keyboard.press(KEY_LEFT_GUI); | |
delay(100); | |
Keyboard.press('1'); | |
delay(100); | |
Keyboard.releaseAll(); | |
} | |
void loop() { | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment