Articles Posted in the " " Category

  • Ethernet.localMAC()

    Ethernet.localMAC()

    描述 取得 86Duino 的 MAC 位址。86Duino Coding 102 (含)以后的版本才有支援此函式。 语法 Ethernet.localMAC(); 参数 回传 一个包含 86Duino MAC 位址的阵列,大小为 6 bytes。 范例 函式库参考主页面 本页由热血自造者 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 […]


  • noFill()

    noFill()

    描述 取消填满图形。 语法 screen.noFill(); 参数 无参数 回传 无回传值 范例 See also - TFT() - fill() - 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 domain.


  • fill()

    fill()

    描述 在萤幕上显示任何东西前呼叫这个函式,该函式使得显示的图形以及文字被指定的颜色填满。 fill() 的三个参数 red, green, blue,大小都是 8-bit,但是 fill() 在显示时,red 和 blue 只会使用 5-bit,green 只会使用 6-bit,使用等比例的方法把原本的值缩小。 语法 screen.fill(red, green, blue); 参数 red:红色的数值,范围为 0~255,型态为 int green:绿色的数值,范围为 0~255,型态为 int blue:蓝色的数值,范围为 0~255,型态为 int 回传 无回传值 范例 See also - TFT - noStroke() - stroke() - noFill() 函式库参考主页面 The text of the 86Duino reference is a modification of the […]


  • 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 […]