Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <ProTrinketKeyboard.h>
- void setup()
- {
- // start USB keyboard
- TrinketKeyboard.begin();
- }
- void loop()
- {
- TrinketKeyboard.poll();
- // press CAPS_LOCK key
- TrinketKeyboard.pressKey(0, 0x39);
- TrinketKeyboard.pressKey(0, 0);
- delay(random(5000, 10000));
- // press GUI key
- TrinketKeyboard.pressKey(0, KEYCODE_LEFT_GUI);
- TrinketKeyboard.pressKey(0, 0);
- delay(random(5000, 10000));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement