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.