Articles Posted in the " " Category

  • Keyboard.println()

    Keyboard.println()

    描述 送出按键内容给已连接的电脑,内容最后面接着新列符号与复位符号。 在呼叫 Keyboard.print() 函式之前,要先呼叫 Keyboard.begin() 函式。 注意:在您呼叫 Keyboard.print() 函式之后,86Duino 会接管您的键盘,模拟键盘按下按键的行为。建议在 86Duino 上透过外接开关,来切换电脑键盘和 86Duino 之间的控制权。 语法 Keyboard.println() Keyboard.println(character) Keyboard.println(characters) 参数 character : 一个要送给电脑的 char 或 int 型别的字元。 characters : 送给电脑的字串(相当于连续敲击键盘按键)。 回传 送出的 byte 个数 范例 See also - Keyboard.begin() - Keyboard.end() - Keyboard.press() - Keyboard.print() - Keyboard.release() - Keyboard.releaseAll() - Keyboard.write() 函式库参考主页面 The text of […]


  • Keyboard.print()

    Keyboard.print()

    描述 送出按键内容给已连接的电脑。 在呼叫 Keyboard.print() 函式之前,要先呼叫 Keyboard.begin() 函式。 注意:在您呼叫 Keyboard.print() 函式之后,86Duino 会接管您的键盘,模拟键盘按下按键的行为。建议在 86Duino 上透过外接开关,来切换电脑键盘和 86Duino 之间的控制权。 语法 Keyboard.print(character) Keyboard.print(characters) 参数 character : 一个要送给电脑的 char 或 int 型别的字元。 characters : 送给电脑的字串(相当于连续敲击键盘按键)。 回传 送出的 byte 个数 范例 See also - Keyboard.begin() - Keyboard.end() - Keyboard.press() - Keyboard.println() - Keyboard.release() - Keyboard.releaseAll() - Keyboard.write() 函式库参考主页面 The text of the […]


  • Keyboard.press()

    Keyboard.press()

    描述 送出按下键盘按键的命令给已连接的电脑(相当于按着键盘按键不放),您也可以配合修饰键来使用。若要放开键盘按键,请呼叫 Keyboard.release() 函式,或者 Keyboard.releaseAll() 函式。 在呼叫 Keyboard.press() 函式之前,要先呼叫 Keyboard.begin() 函式。 语法 Keyboard.press(key) 参数 key : 要按下的按键(char 型别) 回传 无回传值 范例 See also - Keyboard.begin() - Keyboard.end() - 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 […]


  • Keyboard.end()

    Keyboard.end()

    描述 结束 HID 键盘模拟行为。 如果要开始模拟,请呼叫 Keyboard.begin() 函式。 语法 Keyboard.end() 参数 回传 无回传值 范例 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 […]


  • Keyboard.begin()

    Keyboard.begin()

    描述 初始化 HID 键盘。begin()要在尚未呼叫任何键盘控制函式前呼叫。 要结束 HID 键盘的模拟行为,必需呼叫 Keyboard.end()。 语法 Keyboard.begin() 参数 回传 无回传值 范例 See also - Keyboard.end() - 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. […]


  • Mouse.isPressed()

    Mouse.isPressed()

    描述 检查鼠标上的按键有没有被按下。 语法 Mouse.isPressed(); Mouse.isPressed(button); 参数 当没有输入参数,预设是左键。 button:要检查哪一个按键 char 型别 -MOUSE_LEFT(预设) -MOUSE_RIGHT -MOUSE_MIDDLE 回传 布林值:指定的键有没有被按下 范例 See also - Mouse.begin() - Mouse.click() - Mouse.end() - Mouse.move() - Mouse.press() - Mouse.release() 函式库参考主页面 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 […]


  • Mouse.release()

    Mouse.release()

    描述 放開一個已被按下(請參考 Mouse.press())的鼠標按鍵。Mouse.release() 預設是鼠標左鍵。 注意:當你呼叫 Mouse.release() 函式後,86Duino 會接管你的鼠標,使它做出放開鼠標按鍵的行為(使用此函式前,請確認實體鼠標運作是沒問題的)。 建議你可以在程式中,判斷一個外接按鈕是否按下,來決定是否送出放開 86Duino 鼠標按鍵的命令。 語法 Mouse.release(); Mouse.release(button); 參數 button:要放開哪一個按鍵 char 型別 -MOUSE_LEFT(預設) -MOUSE_RIGHT -MOUSE_MIDDLE 回傳 無回傳值 範例 See also - Mouse.begin() - Mouse.click() - Mouse.end() - Mouse.move() - Mouse.press() - Mouse.isPressed() 函式庫參考主頁面 The text of the 86Duino reference is a modification of the Arduino reference, and is licensed […]


  • Mouse.press()

    Mouse.press()

    描述 送出按下鼠标键的命令给电脑(相当于按着鼠标按键不放)。若要放开鼠标按键,请呼叫 Mouse.release() 函式。 在呼叫 Mouse.press() 函式之前,要先呼叫 Mouse.begin() 函式。 Mouse.press() 预设是鼠标左键。 注意:当你呼叫 Mouse.press() 函式后,86Duino 会接管你的鼠标,使它做出按下鼠标按键的行为(使用此函式前,请确认实体鼠标运作是没问题的)。 建议你可以在程式中,判断一个外接按钮是否按下,来决定是否送出按下 86Duino 鼠标按键的命令。 语法 Mouse.press(); Mouse.press(button); 参数 button:要按下哪一个按键 char 型别 -MOUSE_LEFT(预设) -MOUSE_RIGHT -MOUSE_MIDDLE 回传 无回传值 范例 See also - Mouse.begin() - Mouse.click() - Mouse.end() - Mouse.move() - Mouse.release() - Mouse.isPressed() 函式库参考主页面 The text of the 86Duino reference is a modification […]


  • Mouse.move()

    Mouse.move()

    描述 移动电脑上的鼠标。在萤幕上,鼠标的移动距离是一个相对值(即上一个位置与目前位置的距离)。在呼叫 Mouse.move() 函式之前,要先呼叫 Mouse.begin() 函式。 注意:当你呼叫 Mouse.move() 函式后,86Duino 会接管你的鼠标,使它做出移动的行为(使用此函式前,请确认实体鼠标运作是没问题的)。 建议你可以在程式中,判断一个外接按钮是否按下,来决定是否送出移动 86Duino 鼠标的命令。 语法 Mouse.move(xVal, yPos, wheel); 参数 xVal:沿着 X 轴移动的距离 signed char 型别 yVal:沿着 Y 轴移动的距离 signed char 型别 wheel:滚轮移动的距离 signed char 型别 回传 无回传值 范例 See also - Mouse.begin() - Mouse.click() - Mouse.end() - Mouse.press() - Mouse.release() - Mouse.isPressed() 函式库参考主页面 The text of […]


  • Mouse.end()

    Mouse.end()

    描述 结束 HID 鼠标模拟行为。 如果要开始模拟,请呼叫 Mouse.begin() 函式。 语法 Mouse.end() 参数 回传 无回传值 范例 See also - Mouse.begin() - Mouse.click() - Mouse.move() - Mouse.press() - Mouse.release() - Mouse.isPressed() 函式库参考主页面 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 […]