Articles Posted by the Author:

  • noStroke()

    noStroke()

    描述 呼叫这个函式取消线段的颜色。 语法 screen.noStroke(); 参数 无参数 回传 无回传值 范例 See also - TFT - fill() - noFill() - stroke() - background() 函式库参考主页面 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 […]


  • 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.