Articles Posted in the " " Category

  • available()

    available()

    描述 检查档案是否还有可读取的资料。 available() 是从 Stream 继承而来。 语法 file.available() 参数 file:被 SD.open() 回传的 File 物件 回传 int:可读资料的位元组数量 See Also - read() - peek() - Stream.available() 函式库参考主页面 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 […]


  • rmdir()

    rmdir()

    描述 删除 MicroSD 卡裡的资料夹,该资料夹必须是空的。 语法 SD.rmdir(dir_name) 参数 dir_name:要删除的资料夹路径,路径应该要以 “/” 分隔资料夹名称 回传 bool:如果资料夹成功删除则回传 true,反之则回传 false,如果要删除的资料夹不存在,回传的值可能是任何值 See also - mkdir() 函式库参考主页面 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.


  • remove()

    remove()

    描述 删除 MicroSD 卡裡的档案。 语法 SD.remove(filename) 参数 filename:要删除的档案路径,路径应该要以 “/” 分隔资料夹名称 回传 bool:如果档案成功删除则回传 true,反之则回传 false,如果要删除的档案不存在,回传的值可能是任何值 See also - rmdir() 函式库参考主页面 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.


  • open()

    open()

    描述 开启 MicroSD 卡上的档案。如果档案开启的模式是写入,而指定的档案不存在,则会建立该档案,但是存放该档案的资料夹必须已经存在。 语法 SD.open(filepath) SD.open(filepath, mode) 参数 filename:要开启的资料夹路径,路径应该要以 “/” 分隔资料夹名称,型态为 char* mode (非必要):开启档案的模式,可以为以下之一,如果没有提供这个参数,预设为 FILE_READ FILE_READ:开启档案后可以读取资料,起始位址为档案的开头 FILE_WRITE:开启档案后可以写入以及读取资料,起始位址为档案的结尾 回传 File:如果档案开启成功回传一个指向该档案的 File 物件,如果开启失败则该 File 物件在使用 if 判断时与布林值的 false 相等 See also - File: close() 函式库参考主页面 The text of the 86Duino reference is a modification of the Arduino reference, and is licensed under a Creative Commons Attribution-ShareAlike […]


  • 在 Winodws XP 下安装 86Duino 开发环境

    在 Winodws XP 下安装 86Duino 开发环境

    以下以一系列的连续图示,说明把 86Duino 开发板插上 Windows XP 电脑后,安装 86Duino 驱动程式的步骤。 (回到 在 Windows 下使用 86Duino 页面。) Getting-Started Home The text of the 86Duino reference is licensed under a Creative Commons Attribution-ShareAlike 3.0 License.


  • mkdir()

    mkdir()

    描述 在 MicroSD 卡上建立资料夹。建立资料夹时会把资料夹路径中所有不存在的资料夹都新增,举例来说要建立的资料夹路径为 a/b/c,如果资料夹 a、a/b、a/b/c 都不存在,则一共会建立三个资料夹,分别为 a、a/b、a/b/c。 语法 SD.mkdir(dir_name) 参数 dir_name:要建立的资料夹路径,路径应该要以 “/” 分隔资料夹名称 回传 bool:如果建立资料夹成功则回传 true,反之回传 false See also - rmdir() 函式库参考主页面 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 […]


  • exists()

    exists()

    描述 检查指定的档案或是资料夹是否存在 MicroSD 卡。 语法 SD.exists(filename) 参数 filename:要测试是否存在的档案或资料夹路径,路径应该要以 / 分隔资料夹名称 回传 bool:如果指定的档案或是资料夹存在则回传 true,反之回传 false 函式库参考主页面 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.


  • begin()

    begin()

    描述 初始化 SD 函式库和 MicroSD 卡。 语法 SD.begin() SD.begin(cspin) 参数 cspin (非必要):这个参数在 86Duino 上是用不到的,但为了相容 Arduino 因此保留这个参数。 回传 bool:如果成功回传 true,反之回传 false 函式库参考主页面 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.


  • createChar()

    createChar()

    Description 自订客製化的字元,最多可以自订八个 5*8 的字元,每个自订字元会有一个编号,编号从 0 ~ 7。每个自订字元使用一个内含有 8 个位元组的阵列来储存,其中每个位元组只会使用到 0 ~ 4 五个位元,如果在这 0 ~ 4 的位元设定为 1 代表要液晶显示器的这格亮,如果设定为 0 则代表要暗。要显示自订字元时把自订字元的编号作为参数传入 write() 函式。 注:当要使用编号为 0 的自订字元时,如果作为参数给 write() 函式的不是变数,应该要把型态转换为 byte,否则会发生编译错误,详见以下范例。 语法 lcd.createChar(num, data) 参数 num:自订字元的编号 data:存放自订字元的阵列 范例 函式库参考主页面 The text of the 86Duino reference is a modification of the Arduino reference, and is licensed under a […]


  • rightToLeft()

    rightToLeft()

    描述 设定液晶显示器显示字元的排列方式为由右至左(预设为由左至右),这设定不影响已经显示在液晶显示器上的字元。 语法 lcd.rightToLeft() 参数 无参数 See also - leftToRight() 函式库参考主页面 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.