描述 Task() 轮询连接的 USB 装置,并更新装置的状态。 语法 usb.Task() 参数 usb:物件名称,该物件属于 USB 类别 范例 参见 - MouseController - KeyboardController - USBHost 函式库参考主页面 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.
Description USBHost 是一个类别,所有存取 USB 键盘和滑鼠的动作都必须透过 USBHost。 语法 USBHost usb; 参见 - MouseController - KeyboardController 函式库主页面 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.
下面提供 86Duino 与 SSI 信号类型的绝对编码器连接的一个例子。 本例使用 86Duino One 与 AM4096 旋转编码器 IC。AM4096 可以用 SSI 通信介面来输出绝对位置资讯,SSI 在连接方式上,只需要两条线:时脉线与资料线。在 AM4096 规格书中,对应 SSI 信号的脚位分别被标示为 Data 和 Clock,可直接连接到 86Duino One 的 ENC0 编码器介面的 A、B 两根针脚(即 digital pins 42、43),同时因为 AM4096 需要供应 3.3V 电源,因此我们将 86Duino One 的 3.3V 输出与 GND 分别接到 AM4096 的 Vdd 与 GND 脚位,如此即可用 Encoder 函式库的 SSI 模式来读取 AM4096 […]
86Duino 从 Coding 104 版本的 IDE 开始加入此函式库,其为 Ken Shirriff 所写的 Arduino 版本 IRremote 函式库 之移植。 关于此函式库之使用,可参考 Ken Shirriff 的原文网页,或 马万圳先生 及 叶难先生 的 blog 教学文章。 函式库参考主页面 The text of the 86Duino reference is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public domain.
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 […]