   int password_char_index = 0;
 
   Serial.println(F("Waiting for password index ..."));
+  blink(1);
+
   n = RawHID.recv(buffer, waitTimeout);
   if (n > 0) {
+
     // the computer sent a message.
     Serial.print(F("Received packet, first byte: "));
     Serial.println((int)buffer[0]);

    }

    // actually send the packet
    n = RawHID.send(buffer, 100);
    if (n > 0) {
      Serial.println(F("Transmit password"));
    } else {
      Serial.println(F("Unable to transmit packet"));
    }
  }
}

   You must select Raw HID from the "Tools > USB Type" menu
*/

// Teensy 3.0 has the LED on pin 13
const int ledPin = 13;

void setup() {
  Serial.begin(9600);
  Serial.println(F("RawHID Example"));

  pinMode(ledPin, OUTPUT);

  blink(3);
}

// RawHID packets are always 64 bytes
