Articles Posted in the " " Category

  • begin()

    begin()

    描述 启动伺服端,让伺服端开始监听连线请求。 语法 server.begin() 参数 无参数 回传 无回传值 范例 函式库参考主页 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.


  • EthernetServer()

    EthernetServer()

    描述 创建一个伺服端,这个伺服端会监听指定的埠是否有连线的请求。 语法 EthernetServer(port); 参数 port: 要监听的埠编号 回传 无回传值 范例 函式库参考主页面 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.




  • Ethernet.maintain()

    Ethernet.maintain()

    描述 此函式在 86Duino 中是没有作用的。保留此函式的目的,是为了与 Arduino Ethernet 函式库维持相容性。 语法 Ethernet.maintain(); 参数 回传 0 (byte 型别) 函式库参考主页面 本页由热血自造者 Allen Chang 译自英文版。 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.


  • Ethernet.localIP()

    Ethernet.localIP()

    描述 取得 86Duino 的 IP位址。当 IP 被 DHCP 自动分配时,此函式是很有用的。 语法 Ethernet.localIP(); 参数 回传 86Duino 的 IP 位址。 范例 函式库参考主页面 本页由热血自造者 Allen Chang 译自英文版。 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 […]


  • Ethernet.begin()

    Ethernet.begin()

    描述 初始化 Ethernet 函式库和网路设定。 此函式库也有支援 DHCP 功能。使用 Ethernet.begin(mac) 或 Ethernet.begin() 之后,内部会设定适合的网路参数,并自动取得一个 IP 位址。 语法 Ethernet.begin(); Ethernet.begin(mac); Ethernet.begin(mac, ip); Ethernet.begin(mac, ip, dns); Ethernet.begin(mac, ip, dns, gateway); Ethernet.begin(mac, ip, dns, gateway, subnet); 参数 mac:一个包含 MAC (Media access control) 位址的阵列,大小为 6 bytes。每一片 86Duino 在出厂时,内部已经烧录一个专属的 MAC 位址,所以这个参数可以不设定。保留此参数的目的,是为了与 Arduino Ethernet 函式库维持相容性。 ip:你想要设定的 86Duino IP 位址 (4 bytes 大小的阵列)。 dns:DNS server […]


  • write()

    write()

    描述 写一个 byte 值到 EEPROM。 语法 EEPROM.write(address, value) 参数 address: 写入的位置,从 0 开始 (int 型别) value: 写入的值,从 0 ~ 255 (byte 型别) 回传 无回传值 注意 假如你使用 16K 的 flash 虚拟 EEPROM,写入会花较长的时间来完成 (平均约 200 ~ 250 微秒);由于虚拟 EEPROM 是使用内建 flash 来实作的,所以会受到 flash 写入/抹除次数的限制,在使用上可能要留意写入的总次数。 使用 200 byte 的 CMOS 虚拟 EEPROM 来写入,速度会比较快,平均约 2 ~ 3 微秒,并且没有上面的限制。但是,如果你移除板子上的电池,CMOS 虚拟的 […]


  • read()

    read()

    描述 从 EEPROM 读取一个 byte。 语法 EEPROM.read(address) 参数 address: 要读取的位置,从 0 开始 (int 型别) 回传 指定位置的值 (byte 型别) 范例 See also - EEPROM.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 […]


  • 在 Windows 下使用 86Duino

    在 Windows 下使用 86Duino

    本文解释如何连接您的 86Duino 开发板到 Windows 电脑上,以及如何上载您第一个 sketch 程式。 1) 准备一片 86Duino 与一条 USB 连接线 这里假设您使用 86Duino Zero, 86Duino One, 或 86Duino EduCake. 您也需要一条 MicroUSB to USB 连接线(例如大部份智慧型手机的 USB 连接线)。 2) 下载 86Duino Coding 开发环境 请至下载页取得 86Duino Coding 最新版(请下载对应 Windows 的版本)。 下载完成后双击 .zip 档将其解压。 3) 连接 86Duino 开发板 86Duino Zero 和 One 会自动从 MicroUSB 插座及外部电源输入插座选择电源输入来源,86Duino EduCake 则是只能透过 […]