Articles Posted by the Author:

  • stroke()

    stroke()

    描述 设定显示线段的颜色。 stroke() 的三个参数 red, green, blue,大小都是 8-bit,但是 stroke() 在显示时,red 和 blue 只会使用 5-bit,green 只会使用 6-bit,使用等比例的方法把原本的值缩小。 语法 screen.stroke(red, green, blue); 参数 red:红色的数值,范围为 0~255,型态为 int green:绿色的数值,范围为 0~255,型态为 int blue:蓝色的数值,范围为 0~255,型态为 int 回传 无回传值 范例 See also - background() - noStroke() - fill() 函式库参考主页面 The text of the 86Duino reference is a modification of the Arduino reference, […]


  • background()

    background()

    描述 清除在萤幕上显示的所有内容并且让萤幕显示指定的颜色。 background() 的三个参数 red, green, blue,大小都是 8-bit,但是 background() 在显示时,red 和 blue 只会使用 5-bit,green 只会使用 6-bit,使用等比例的方法把原本的值缩小。 语法 screen.background(red, green, blue); 参数 red:红色的数值,范围为 0~255,型态为 int green:绿色的数值,范围为 0~255,型态为 int blue:蓝色的数值,范围为 0~255,型态为 int 回传 无回传值 范例 See also - fill() - stroke() 函式库参考主页面 The text of the 86Duino reference is a modification of the Arduino reference, and is […]


  • transfer()

    transfer()

    描述 由 SPI 介面发送并接收 1 个 byte 资料。 语法 SPI.transfer(val) 参数 val:要藉由 SPI 发送的 1 byte 资料 回传 由 SPI 取得的 1 byte 资料 函式库参考主页面 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 […]


  • setDataMode()

    setDataMode()

    描述 设定 SPI Data 的模式:clock 极性及相位设定。详见 Wikipedia article on SPI。 语法 SPI.setDataMode(mode) 参数 mode: SPI_MODE0, SPI_MODE1, SPI_MODE2, or SPI_MODE3. mode Clock Polarity (CPOL) Clock Phase (CPHA) SPI_MODE0 0 0 SPI_MODE1 0 1 SPI_MODE2 1 0 SPI_MODE3 1 1 回传 See also - setBitOrder() - setClockDivider() 函式库参考主页面 The text of the 86Duino reference is a […]


  • setClockDivider()

    setClockDivider()

    描述 设定SPI 时脉的除数。86Duino SPI CLOCK=100/(2*divider) MHz。 除数可设定范围为 1~4095 的整数。86Duino Coding 102 版之前内定除数为 800,SPI clock 为 62.5KHz。Coding 103 版内定除数为 13,SPI clock 与使用 AVR CPU 的 Arduino 同为 4MHz。 语法 SPI.setClockDivider(divider) 参数 divider:1~4095 的整数 回传 See also - setBitOrder() - setDataMode() 函式库参考主页面 The text of the 86Duino reference is a modification of the Arduino reference, and […]


  • 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" 假如你使用的 […]