Keyboard.end()

[USB]

描述

Stops the keyboard emulation to a connected computer. To start keyboard emulation, use Keyboard.begin().

語法

Keyboard.end()

參數

回傳

nothing

範例

void setup() {
  //start keyboard communication
  Keyboard.begin();
  //send a keystroke
  Keyboard.print("Hello!");
  //end keyboard communication
  Keyboard.end();
}
 
void loop() {
 //do nothing
}

參考


語法參考主頁面

86Duino 參考的文本是根據 Creative Commons Attribution-ShareAlike 3.0 License,部分文本是從 the Arduino reference 修改的。 參考中的代碼示例已發佈到公共領域。

發表評論

上部へスクロール