Articles Posted in the " " Category

  • circle()

    circle()

    描述 在萤幕上画一个圆形。 语法 screen.circle(xPos, yPos, radius); 参数 xPos:圆心的位置的 x 座标,型态为 int yPos:圆心的位置的 y 座标,型态为 int radius:圆的半径,型态为 int 回传 int:萤幕的宽度 范例 See also - TFT - rect() - line() - point() 函式库参考主页面 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 […]


  • height()

    height()

    描述 取得萤幕的高度。 语法 screen.height(); 参数 无参数 回传 int:萤幕的宽度,单位为像 范例 See also - TFT - width( ) 函式库参考主页面 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.


  • width()

    width()

    描述 取得萤幕的宽度。 语法 screen.width(); 参数 无参数 回传 int:萤幕的宽度,单位为像 范例 See also - TFT - height() 函式库参考主页面 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.


  • rect()

    rect()

    描述 在萤幕上画出长方形。 语法 screen.rect(xStart, yStart, width, height); 参数 xStart:长方形左上角的位置的 x 座标,型态为 int yStart:长方形左上角的位置的 y 座标,型态为 int width:长方形的宽度,型态为 int height:长方形的高度,型态为 int 回传 无回传值 范例 See also - TFT - circle() - line() - point() 函式库参考主页面 The text of the 86Duino reference is a modification of the Arduino reference, and is licensed under a Creative Commons Attribution-ShareAlike […]


  • line()

    line()

    描述 在指定的两个点之间画一条线。 使用 stroke() 改变 line() 画出的线的颜色。 语法 screen.line(xStart, yStart, xEnd, yEnd); 参数 xStart:线段起始点的位置中的 x 座标,型态为 int yStart:线段起始点的位置中的 y 座标,型态为 int xEnd:线段终点的位置中的 x 座标,型态为 int yEnd:线段终点的位置中的 y 座标,型态为 int 回传 回传值 范例 See also - TFT - stroke() - point() 函式库参考主页面 The text of the 86Duino reference is a modification of the Arduino reference, and […]


  • point()

    point()

    描述 在指定的萤幕位置显示点。 语法 screen.fill(xPos, yPos); 参数 xPos:要显示文字的位置中的 x 座标,型态为 int yPos:要显示文字的位置中的 y 座标,型态为 int 回传 回传值 范例 See also - TFT - line() 函式库参考主页面 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 […]



  • setTextSize()

    setTextSize()

    描述 设定文字的大小。预设值是 1。每增加 1 代表文字的高度会增加 10 像素,1 = 10 像素,2 = 20 像素,以此类推。 语法 screen.setTextSize(size); 参数 size: 1~5,型态为 int 回传 无回传值 范例 See also - TFT - text() - stroke() 函式库参考主页面 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 […]


  • text()

    text()

    描述 在指定的萤幕位置显示文字。 语法 screen.text(text, xPos, yPos); 参数 text:存放要显示的文字,型态为 char 阵列 xPos:要显示文字的位置中的 x 座标,型态为 int yPos:要显示文字的位置中的 y 座标,型态为 int 回传 无回传值 范例 See also - TFT - stroke() 函式库参考主页面 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 […]


  • setBank()

    setBank()

    Description 选择要用哪一种类型的虚拟 EEPROM。 从 86Duino Coding 102 版本以后才能使用这个函式。86Duino Coding 101 或更早的版本,你应该要使用 set_bank() 来代替。 语法 EEPROM.setBank(bank) 参数 bank: 指定你要使用的虚拟 EEPROM 类型,EEPROM_16K 是 16K 大小的 flash 虚拟 EEPROM,EEPROM_200B 是 200-byte 大小的 CMOS 虚拟 EEPROM。预设的类型是 EEPROM_16K。 回传 无回传值 范例 See also - EEPROM.read() - EEPROM.write() 函式库参考主页面 The text of the 86Duino reference is a modification of the Arduino […]