Skip to content

Instantly share code, notes, and snippets.

@wware
Created August 18, 2016 20:42
Show Gist options
  • Save wware/bdb53a6003116c4524a58d47285ad65d to your computer and use it in GitHub Desktop.
Save wware/bdb53a6003116c4524a58d47285ad65d to your computer and use it in GitHub Desktop.
Teensy program to keep your computer awake (and therefore your VPN). Compile with Tools->USB->Keyboard.
int count = 0;
void setup() { }
void loop() {
int i;
Keyboard.print("Hello World ");
Keyboard.print(count);
count = count + 1;
delay(2000);
for (i = 0; i < 20; i++) {
Keyboard.print("\177");
delay(200);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment