描述 把游标位置移至左上角。如果移动游标的同时也要清除液晶显示器上显示的字元,可以使用 clear()。 语法 lcd.home() 参数 无参数 函式库参考主页面 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.
描述 清除液晶显示器目前显示的字元并把游标位置移至左上角。 语法 lcd.clear() 参数 无参数 函式库参考主页面 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.
描述 初始化液晶显示器,藉由给予液晶显示器的高度和宽度,让 LiquidCrystal 物件知道液晶显示器的可印范围。 begin() 这个函式必须在呼叫所有 LiquidCrystal 函式库提供的函式之前呼叫。 语法 lcd.begin(cols, rows) 参数 cols:液晶显示器可印范围的行数 rows:液晶显示器可印范围的列数 函式库参考主页面 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.
描述 LiquidCrystal 类别实作控制液晶显示器的功能。 LiquidCrystal 类别同时支援 4 或 8 条资料线的连接方式。如果使用 4 条资料线连接,建构 LiquidCrystal 物件时,忽略 d0 ~ d3 的参数。如果 RW 脚位是接地,而不是连接到 86Duino,忽略 rw 这个参数。 语法 LiquidCrystal(rs, enable, d4, d5, d6, d7) LiquidCrystal(rs, rw, enable, d4, d5, d6, d7) LiquidCrystal(rs, enable, d0, d1, d2, d3, d4, d5, d6, d7) LiquidCrystal(rs, rw, enable, d0, d1, d2, d3, d4, d5, […]
描述 检查存在的 UDP 封包并且回传封包大小。呼叫 Udp.read() 前必须先呼叫 parsePacket()。 语法 Udp.parsePacket(); 参数 无参数 回传 int:UDP 封包的大小 范例 函式库参考主页面 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.
描述 取得远端连线的埠编号。 要使用 remoteIP() 前必须先呼叫 UDP.parsePacket()。 语法 Udp.remotePort(); 参数 无参数 回传 int:远端连线的埠编号 范例 函式库参考主页面 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.
描述 取得远端连线的 IP 位址。 要使用 remoteIP() 前必须先呼叫 UDP.parsePacket()。 语法 Udp.remoteIP(); 参数 无参数 回传 4 bytes:远端连线的 IP 位址 范例 函式库参考主页面 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 Coding 的执行需要 Java JRE,下面将说明在 Fedora 上安装 Java JRE套件的步骤。另外,86Duino Coding 将 sketch 烧录到 86Duino 开发板时,为避免找不到序列埠和 Modem Manager 干扰,我们也将介绍如何更改相关设定档。(若您是使用 Coding 207 以前的版本,建立环境的方式请参考这里) Step 1 开启终端机: Step 2 安装 Java JRE 套件。 如果您的 Fedora 版本是 18 以上,请略过此步骤,直接进行 Step 3。 如果您的 Fedora 版本是 17/16,请键入以下指令: sudo yum install java-1.7.0-openjdk.i686 您将看到 Java JRE 套件的安装画面如下: Step 3 为避免 Modem Manager 干扰 […]
描述 定义 IP 位址。可以用来描述本机或远端的位址。 语法 IPAddress(address); 参数 位址:一串以逗号分隔的数字用以代表位址(4 个位元组,如: 192, 168, 1, 1) 回传 无回传值 范例 函式库参考主页面 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.
描述 中断与伺服器的连线。所有在建立 UDP 时所使用的资源都会一併丢弃。 语法 Udp.stop() 参数 无参数 回传 无回传值 函式库参考主页面 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.