86Duino IDE 从 Coding 104 开始加入此函式库,此函式库实做 Arduino Dues USBHost 函式库的 API,可以透过 86Duino 的 USB 2.0 接口存取 USB 键盘和滑鼠。 USBHost 類別 - USBHost - Task() Mouse Controller MouseController 函式库建立 USB 滑鼠和 86Duino 的通讯。 - MouseController - mouseMoved() - mouseDragged() - mousePressed() - mouseReleased() - getXChange() - getYChange() - getButton() Keyboard Controller KeyboardController 函式庫建立 USB 鍵盤和 86Duino […]
Version Windows Mac OS X Linux 20141103 LATEST VERSION Binary Binary Binary 20140918 Binary Binary Binary 20140709 Binary Binary Binary 20140409 Binary Binary Binary 20140218 Binary Binary Binary SysImage 的安装教学,请见下列页面:Windows、Linux、Mac。 SysImage 的使用教学,请见此页面。 SysImage 原始码可至 GitHub 页面 下载。 新手上路主页面 The text of the 86Duino reference is licensed under a Creative Commons Attribution-ShareAlike 3.0 License.
对不起,此内容只适用于English。
描述 送出一个按键内容给电脑,这个动作相当于先按下然后再放开电脑键盘上的一个键。你可以用这个函式送出一些 ASCII 字元、键盘修饰键和特殊按键。 此函式只能对应键盘有支援的 ASCII 字元。例如:输入 ASCII 码 8(为空白键)是可以的,但输入 ASCII 码 26(为 Substitution)则不支援。当送出一个大写字母时,Keyboard.write() 会送出 shift 键和指定按键的内容给电脑,相当于您用实体键盘同时按下 shift 和指定按键一样。另外,此函式的参数也可以输入数字,此数字会视为一个 ASCII 字元被送出(例如:Keyboard.write(97),等同送出一个小写字母 a) 完整的 ASCII 字元列表,请参考 ASCIITable.com。 注意:在您呼叫 Keyboard.write() 函式之后,86Duino 会接管您的键盘,模拟键盘按下按键的行为。建议在 86Duino 上透过外接开关,来切换电脑键盘和 86Duino 之间的控制权。 语法 Keyboard.write(character) 参数 character : 一个要送给电脑的 char 或 int 型别的字元。另外,您也可以用不同的表示法来指定要送出的 ASCII 字元,例如:使用下面的表示方式,都是代表要送出大写的英文字母 A: 回传 int : 送出去的字元数 范例 See also - […]
描述 放开所有已按着(请参考 Keyboard.press())的键盘按键。 语法 Keyboard.releaseAll(); 参数 回传 无回传值 范例 See also - Keyboard.begin() - Keyboard.end() - Keyboard.press() - Keyboard.print() - Keyboard.println() - Keyboard.release() - 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 […]
描述 放开一个已被按下(请参考 Keyboard.press())的键盘按键。 语法 Keyboard.release(key); 参数 key:要放开哪一个键盘按键 char 型别 回传 无回传值 范例 See also - Keyboard.begin() - Keyboard.end() - Keyboard.press() - Keyboard.print() - Keyboard.println() - 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 […]
描述 送出按键内容给已连接的电脑,内容最后面接着新列符号与复位符号。 在呼叫 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.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.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 […]
描述 结束 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 […]