Teensy键盘操作代码说明

int count = 0;
void setup() { } // no setup needed
void loop() {
  Keyboard.print("Hello World "); 
  Keyboard.println(count);
  count = count + 1;
  //press key a
  Keyboard.set_key1(KEY_A);
  Keyboard.send_now();
  //press key now
  
  //release key 
  Keyboard.set_modifier(0);//release ctrl or shift etc.
  Keyboard.set_key1(0);//release normal key
  Keyboard.send_now();
  //release key ok
  delay(5000);
}