Keyboard.end()

描述

结束 HID 键盘模拟行为。
如果要开始模拟,请呼叫 Keyboard.begin() 函式。

语法


Keyboard.end()

参数

æ—

回传

无回传值

范例

void setup(){
  // 开始 HID 键盘模拟
  Keyboard.begin();
  // 模拟按下几个指定按键
  Keyboard.print("Hello!");
  //结束 HID 键盘模拟
  Keyboard.end();
}

void loop(){
 // 不做任何事
}

See also

- Keyboard.begin()
- Keyboard.press()
- Keyboard.print()
- Keyboard.println()
- Keyboard.release()
- Keyboard.releaseAll()
- Keyboard.write()


函式库参考主页面

The text of the 86Duino reference is a modification of the Arduino reference, and is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public domain.