Articles Posted in the " " Category

  • setBitOrder()

    setBitOrder()

    描述 设定数据在 SPI Bus 上传送顺序为低位元(LSBFIRST)优先或高位元(MSBFIRST)优先 语法 SPI.setBitOrder(order) 参数 order:LSBFIRST 或 MSBFIRST 回传 See also - setClockDivider() - setDataMode() 函式库参考主页面 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.


  • end()

    end()

    描述 结束 SPI Bus 语法 SPI.end() 参数 Returns See also - 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.


  • begin()

    begin()

    描述 初始化 SPI Bus 语法 SPI.begin() Parameters Returns See also - SPI.end() - SPI.setClockDivider() - SPI.setDataMode() - SPI.setBitOrder() 函式库参考主页面 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.


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

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

    86Duino Coding 将 sketch 烧录到 86Duino 开发板时,为避免找不到序列埠和 Modem Manager 干扰,我们将介绍如何更改相关设定档。(若您是使用 Coding 207 以前的版本,建立环境的方式请参考这里) Step 1 开启终端机: Step 2 为避免 Modem Manager 干扰 86Duino 的 sketch 程式烧录,我们需要修改 Modem Manager 设定档。 键入以下指令进入 /lib/udev/rules.d/ 资料夹:     cd /lib/udev/rules.d/ 以文书编辑器(例如: vim)打开 77-mm-usb-device-blacklist.rules 档案:     vim 77-mm-usb-device-blacklist.rules 在 77-mm-usb-device-blacklist.rules 档案中新增下面几行: 假如你使用的 86Duino IDE 版本是 Coding 100/101/102/103:     # 86Duino     ATTRS{idVendor}=="0525", ATTRS{idProduct}=="a4a5", ENV{ID_MM_DEVICE_IGNORE}="1" 假如你使用的 […]


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

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

    86Duino Coding 的执行需要 Java JRE,下面将说明在 CentOS 上安装 Java JRE 套件的步骤。另外,86Duino Coding 将 sketch 烧录到 86Duino 开发板时,为避免找不到序列埠和 Modem Manager 干扰,我们也将介绍如何更改相关设定档。(若您是使用 Coding 207 以前的版本,建立环境的方式请参考这里) Step 1 开启终端机: Step 2 安装 Java JRE 套件。 如果您的 CentOS 版本是 7.0 以上,请略过此步骤,直接进行 Step 3。 如果您的 CentOS 版本是 6.0,请键入以下指令:     sudo yum install java-1.7.0-openjdk.i686 您将看到 Java JRE 套件的安装画面如下: Step 3 为避免 Modem Manager […]


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

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

    86Duino Coding 的执行需要 Java JRE ,下面将说明在 Debian 上安装 Java JRE套件的步骤。另外,86Duino Coding 将 sketch 烧录到 86Duino 开发板时,为避免找不到序列埠和 Modem Manager 干扰,我们也将介绍如何更改相关设定档。(若您是使用 Coding 207 以前的版本,建立环境的方式请参考这里) Step 1 开启终端机: Step 2 安装 Java JRE 套件。 如果您的 Debian 版本是 7.0 以上,请略过此步骤,直接进行 Step 3。 如果您的 Debian 版本是 6.0,请键入以下指令:     sudo apt-get install openjdk-6-jre 您将看到 Java JRE 套件的安装画面如下: Step 3 为避免 Modem Manager […]


  • begin()

    begin()

    描述 用来初始化 TFT 物件。在对 TFT 物件做任何操控前,必须先初始化。 语法 screen.begin() 参数 无参数 回传 无回传值 范例 See also - TFT 函式库参考主页面 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.



  • TFT

    TFT

    描述 实作控制 Arduino TFT LCD 的类别。使用 TFT 类别的建构函式创建 TFT 物件,藉以在程式中控制 Arduino TFT LCD。 语法 TFT(cs, dc, rst); // 使用硬体 SPI TFT(cs, dc, mosi, sclk, rst); // 使用软体 SPI 参数 cs:作为 chip select 的脚位,型态为 int dc:作为 D/C 的脚位,型态为 int rst:作为 rst 的脚位,型态为 int mosi:作为 MOSI 的脚位,只有要使用软体 SPI 时需要提供,型态为 int sclk:作为 clock 的脚位,只有要使用软体 SPI 时需要提供,型态为 int 回传 […]


  • step(steps)

    step(steps)

    描述 使步进马达转动指定的步数。转动的速度则依据 setSpeed() 的设定。该函式是阻塞(blocking)型,也就是在步进马达转动到指定的步数前,该函式不会结束去执行下一行程式码。举例来说,如果你的步进马达转一圈需要 100 步并且转动速度设定为 1 RPM,那执行 step(100) 所要花的时间就是 1 分钟。 参数 steps:步进马达转动的步数,参数的正负代表方向,型态为 int 回传 无回传值 See also - Stepper() - setSpeed() 函式库参考主页面 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 […]