Advertisement
nyptus

Knock, knock, Neo

May 6th, 2020
1,751
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*
  2.         Wake up, Neo...
  3.         The Matrix has you...
  4.         Follow the white rabbit.
  5.         Knock, knock, Neo.
  6. */
  7.  
  8. #include "Keyboard.h"
  9.  
  10. void setup() {
  11.   Keyboard.begin();
  12.   delay(1000);
  13.   Keyboard.press(KEY_LEFT_CTRL);
  14.   delay(100);
  15.   Keyboard.press(' ');
  16.   delay(100);
  17.   Keyboard.releaseAll();
  18.   Keyboard.print("sublime");
  19.   delay(100);
  20.   Keyboard.write(KEY_RETURN);
  21.   delay(1000);
  22.   Keyboard.press(KEY_LEFT_GUI);
  23.   Keyboard.press('n');
  24.   delay(100);
  25.   Keyboard.releaseAll();
  26.   Keyboard.press(KEY_LEFT_SHIFT);
  27.   Keyboard.press(KEY_LEFT_CTRL);
  28.   Keyboard.press(KEY_LEFT_GUI);
  29.   Keyboard.press('f');
  30.   delay(100);
  31.   Keyboard.releaseAll();
  32.   delay(3000);
  33.   //Wake up, Neo...
  34.   Keyboard.write(KEY_RETURN);
  35.   delay(10);
  36.   Keyboard.write(KEY_RETURN);
  37.   delay(10);
  38.   Keyboard.write(KEY_RETURN);
  39.   delay(10);
  40.   Keyboard.write(KEY_RETURN);
  41.   delay(10);
  42.   Keyboard.print('W');
  43.   delay(80);
  44.   Keyboard.print('a');
  45.   delay(50);
  46.   Keyboard.print('k');
  47.   delay(50);
  48.   Keyboard.print('e');
  49.   delay(80);
  50.   Keyboard.print(' ');
  51.   delay(50);
  52.   Keyboard.print('u');
  53.   delay(50);
  54.   Keyboard.print('p');
  55.   delay(100);
  56.   Keyboard.print(',');
  57.   delay(50);
  58.   Keyboard.print(' ');
  59.   delay(50);
  60.   Keyboard.print('N');
  61.   delay(50);
  62.   Keyboard.print('e');
  63.   delay(50);
  64.   Keyboard.print('o');
  65.   delay(50);
  66.   Keyboard.print('.');
  67.   delay(50);
  68.   Keyboard.print('.');
  69.   delay(50);
  70.   Keyboard.print('.');
  71.   delay(5000);
  72.   //The Matrix has you...
  73.   Keyboard.press(KEY_LEFT_GUI);
  74.   Keyboard.press('x');
  75.   delay(100);
  76.   Keyboard.releaseAll();
  77.   Keyboard.print('T');
  78.   delay(250);
  79.   Keyboard.print('h');
  80.   delay(200);
  81.   Keyboard.print('e');
  82.   delay(100);
  83.   Keyboard.print(' ');
  84.   delay(50);
  85.   Keyboard.print('M');
  86.   delay(50);
  87.   Keyboard.print('a');
  88.   delay(50);
  89.   Keyboard.print('t');
  90.   delay(50);
  91.   Keyboard.print('r');
  92.   delay(100);
  93.   Keyboard.print('i');
  94.   delay(50);
  95.   Keyboard.print('x');
  96.   delay(50);
  97.   Keyboard.print(' ');
  98.   delay(50);
  99.   Keyboard.print('h');
  100.   delay(50);
  101.   Keyboard.print('a');
  102.   delay(100);
  103.   Keyboard.print('s');
  104.   delay(50);
  105.   Keyboard.print(' ');
  106.   delay(50);
  107.   Keyboard.print('y');
  108.   delay(50);
  109.   Keyboard.print('o');
  110.   delay(100);
  111.   Keyboard.print('u');
  112.   delay(50);
  113.   Keyboard.print('.');
  114.   delay(80);
  115.   Keyboard.print('.');
  116.   delay(80);
  117.   Keyboard.print('.');
  118.   delay(4000);
  119.   //Follow the white rabbit.
  120.   Keyboard.press(KEY_LEFT_GUI);
  121.   Keyboard.press('x');
  122.   delay(100);
  123.   Keyboard.releaseAll();
  124.   Keyboard.print('F');
  125.   delay(80);
  126.   Keyboard.print('o');
  127.   delay(50);
  128.   Keyboard.print('l');
  129.   delay(50);
  130.   Keyboard.print('l');
  131.   delay(50);
  132.   Keyboard.print('o');
  133.   delay(50);
  134.   Keyboard.print('w');
  135.   delay(80);
  136.   Keyboard.print(' ');
  137.   delay(50);
  138.   Keyboard.print('t');
  139.   delay(50);
  140.   Keyboard.print('h');
  141.   delay(50);
  142.   Keyboard.print('e');
  143.   delay(50);
  144.   Keyboard.print(' ');
  145.   delay(50);
  146.   Keyboard.print('w');
  147.   delay(80);
  148.   Keyboard.print('h');
  149.   delay(50);
  150.   Keyboard.print('i');
  151.   delay(50);
  152.   Keyboard.print('t');
  153.   delay(50);
  154.   Keyboard.print('e');
  155.   delay(50);
  156.   Keyboard.print(' ');
  157.   delay(50);
  158.   Keyboard.print('r');
  159.   delay(50);
  160.   Keyboard.print('a');
  161.   delay(50);
  162.   Keyboard.print('b');
  163.   delay(50);
  164.   Keyboard.print('b');
  165.   delay(50);
  166.   Keyboard.print('i');
  167.   delay(50);
  168.   Keyboard.print('t');
  169.   delay(50);
  170.   Keyboard.print('.');
  171.   delay(3000);
  172.   //Knock, knock, Neo.
  173.   Keyboard.press(KEY_LEFT_GUI);
  174.   Keyboard.press('x');
  175.   delay(100);
  176.   Keyboard.releaseAll();
  177.   Keyboard.print("Knock, knock, Neo.");
  178. }
  179.  
  180. void loop() {
  181.  
  182. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement