Advertisement
Guest User

Untitled

a guest
Jul 16th, 2019
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. #include <ProTrinketKeyboard.h>
  2.  
  3. void setup()
  4. {
  5. // start USB keyboard
  6. TrinketKeyboard.begin();
  7. }
  8.  
  9. void loop()
  10. {
  11. TrinketKeyboard.poll();
  12.  
  13. // press CAPS_LOCK key
  14. TrinketKeyboard.pressKey(0, 0x39);
  15. TrinketKeyboard.pressKey(0, 0);
  16.  
  17. delay(random(5000, 10000));
  18.  
  19. // press GUI key
  20. TrinketKeyboard.pressKey(0, KEYCODE_LEFT_GUI);
  21. TrinketKeyboard.pressKey(0, 0);
  22.  
  23. delay(random(5000, 10000));
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement