Create Pinger.ino

This commit is contained in:
Siddharth Mathur 2018-10-18 14:55:53 -05:00 committed by GitHub
parent 55692b6092
commit ef59497219
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 18 additions and 0 deletions

18
Pinger/Pinger.ino Normal file
View File

@ -0,0 +1,18 @@
#include "DigiKeyboard.h"
void setup() {
// don't need to set anything up to use DigiKeyboard
}
void loop() {
DigiKeyboard.sendKeyStroke(0);
DigiKeyboard.sendKeyStroke(0, MOD_GUI_LEFT);
DigiKeyboard.delay(500);
DigiKeyboard.println("terminal");
DigiKeyboard.delay(1000);
DigiKeyboard.sendKeyStroke(KEY_ENTER);
DigiKeyboard.delay(500);
DigiKeyboard.println("ping /t google.com");
DigiKeyboard.sendKeyStroke(KEY_ENTER);
//DigiKeyboard.delay(5000);
}