创客百科

姿势共享,有节操无门槛参与的创客百科,创客动力之源 \ (^_^) /

用户工具

站点工具


arduino:libraries:keyboardend

MouseKeyboard

Keyboard.end()

说明

让Leonardo停止模拟连接到电脑的键盘。要启动键盘模拟,使用 Keyboard.begin ()。

语法

Keyboard.end()

语法

返回

例子

void setup() {
  //启动键盘通信
  Keyboard.begin();
  //发送一个按键动作
  Keyboard.print("Hello!");
  //结束键盘通信
  Keyboard.end();
}
 
void loop() {
  //什么都不做
}
本页面的其他翻译:
arduino/libraries/keyboardend.txt · 最后更改: 2016/12/25 22:15 (外部编辑)