Skip to content

Instantly share code, notes, and snippets.

@tboydar
Created March 29, 2021 22:21
Show Gist options
  • Save tboydar/3893c918c5f5ad1ae91d132771f850b4 to your computer and use it in GitHub Desktop.
Save tboydar/3893c918c5f5ad1ae91d132771f850b4 to your computer and use it in GitHub Desktop.
WIN+1
#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