I'm trying to program a Teensy 3.1 as keyboard, and I'm using an example from https://www.pjrc.com/teensy/td_keyboard.html.
int count = 0;
void setup() { } // no setup needed
void loop() {
Keyboard.print("Hello World ");
Keyboard.println(count);
count = count + 1;
delay(5000);
}
I successfully uploaded the script to the Teensy and the script execution starts immediately. The problem is that after that if I unplug the Teensy and plug it for a second time, nothing is happening. Does someone know what I am doing wrong?