Articles Posted by the Author:

  • 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 则是只能透过 […]


  • Wire Library

    Wire Library

    Wire 函式库实作 I2C 协定,使得使用者可以轻易的与使用 I2C 介面连接的装置传输资料。 函式 - begin() - requestFrom() - beginTransmission() - endTransmission() - write() - available() - read() - onReceive() - onRequest() 注意 I2C 的位址有两种,分别是七位元以及八位元。前七个位元用来表示装置,最后一个位元用来表示该次操作要读取还是写入。Wire 函式库使用七位元的位址。如果要连接的装置在规格书或是程式码中使用八位元的位址,把这个八位元的位址往右位移一位,也就是把最后一个位元捨弃(例:01001011 捨弃最后一个位元后变成 0100101),这样就可以在 Wire 函式库中使用。 函式库参考主页面 The text of the 86Duino reference is a modification of the Arduino reference, and is licensed under a Creative Commons Attribution-ShareAlike […]


  • 在 Ubuntu 上建立 86Duino Coding 执行环境

    在 Ubuntu 上建立 86Duino Coding 执行环境

    86Duino Coding 的执行需要 Java JRE ,下面将说明在 Ubuntu 上安装 Java JRE 套件的步骤。另外,为避免 Ubuntu Modem Manager 干扰 86Duino 的 sketch 程式烧录,我们也将介绍如何更改 Modem Manager 设定档。(若您是使用 Coding 207 以前的版本,建立环境的方式请参考这里) Step 1 开启终端机: Step 2 安装 Java JRE 套件。 如果您的 Ubuntu 版本是 12.04 或以上,请键入以下指令:     sudo apt-get install openjdk-6-jre 如果您的 Ubuntu 版本是 11.04,请键入以下指令:     sudo sed -i 's,http://.*ubuntu.com,http://old-releases.ubuntu.com,g' /etc/apt/sources.list     sudo apt-get -y […]


  • 在 Linux 上安装 86Duino Coding 整合开发环境

    在 Linux 上安装 86Duino Coding 整合开发环境

    86Duino Coding 整合开发环境 (IDE) 是以 Arduino 1.5.8 版为基础修改而来,其在 Linux 上的安装步骤与 Arduino Playground 上的安装教学所写的雷同,下面我们详细介绍如何在 Linux 上安装 86Duino Coding 开发环境(若您是使用 Coding 207 以前的版本,安装方式请参考这里): Step 1 建立 86Duino Coding 的执行环境。请根据您的 Linux 发行版本选择相应的说明: Ubuntu Debian Fedora CentOS 6 openSUSE Step 2 下载并解压 86Duino Coding。 请至 86Duino 下载页面下载 86Duino Coding 的 Linux 版: 将下载的 .tar.gz 档案解压缩至一个资料夹内: Step 3 执行 86Duino […]


  • WiFi 函式库

    WiFi 函式库

    WiFi 函式库实作使用 86Duino 控制 Arduino WiFi Shield 的功能,使得 86Duino 可以透过无线网路(Wireless LAN)连上网路。WiFi 函式库同时也使得 86Duino 可以作为接收要求的伺服端以及传送要求的用户端。在安全性的实作上,WiFi 函式库支援 WEP 和 WPA2 个人版但是不支援 WPA2 企业版,另外如果 SSID 不是广播(broadcast)的,则无法连线。 86Duino 使用 SPI 介面与 Arduino WiFi Shield 连接,不过为了与 Arduino 相容不使用硬体 SPI 介面的 SS 脚位,而使用编号为 10 的脚位作为 SPI 的 SS,使用编号为 7 的脚位作为交握协定(handshake)使用的脚位,要特别注意在程式中不要使用编号 7 和 10 的脚位去做其他的功能。 WiFi 函式库与 Ethernet 函式库的使用方法相似,有许多函式是相同的。 WiFi Shield 的韧体版本 […]