   Keyboard.println("1000);");
   Keyboard.println("digitalWrite(13, LOW);");
   Keyboard.println("delay(1000);");
+  Keyboard.println("}");
   // tidy up:
-  Keyboard.press(KEY_LEFT_CTRL);
-  Keyboard.press('T');
+  Keyboard.press(ctrlKey);
+  Keyboard.press('t');
+  delay(100);
   Keyboard.releaseAll();
   delay(3000);
   // upload code:
-  Keyboard.press(KEY_LEFT_CTRL);
-  Keyboard.press('U');
+  Keyboard.press(ctrlKey);
+  Keyboard.press('u');
+  delay(100);
   Keyboard.releaseAll();
 
   // wait for the sweet oblivion of reprogramming:

 
 Circuit:
 * Arduino Leonardo
 * wire to connect D12 to ground.
 
 created 5 Mar 2012
 by Tom Igoe
