Articles Posted in the " " Category

  • circle()

    circle()

    Description Draws a circle on the screen. The circle is drawn relative to its center point, which means the total diameter will always be an odd number. Syntax screen.circle(xPos, yPos, radius); Parameters xPos: int, the location of the center of the circle on the x axis yPos: int, the location of the center of the […]


  • height()

    height()

    Description Reports the height of the TFT screen in pixels. Syntax screen.height(); Parameters none Returns int : the height of the screen in pixels Example See also - TFT - width( ) Libraries Reference Home The text of the 86Duino reference is a modification of the Arduino reference, and is licensed under a Creative Commons […]


  • width()

    width()

    Description Reports the width of the TFT screen in pixels. Syntax screen.width(); Parameters none Returns int : the width of the screen in pixels Example See also - TFT - height() Libraries Reference Home The text of the 86Duino reference is a modification of the Arduino reference, and is licensed under a Creative Commons Attribution-ShareAlike […]


  • rect()

    rect()

    Description Draws a rectangle to the TFT screen. rect() takes 4 arguments, the first two are the top left corner of the shape, the last two are the width and height of the shape. Syntax screen.rect(xStart, yStart, width, height); Parameters xStart: int, the horizontal position where the line starts yStart: int, the vertical position where […]


  • line()

    line()

    Description Draws a line between two points. Use stroke() to change the color of something drawn with line(). Syntax screen.line(xStart, yStart, xEnd, yEnd); Parameters xStart: int, the horizontal position where the line starts yStart: int, the vertical position where the line starts xEnd: int, the horizontal position where the line ends yEnd: int, the vertical […]


  • point()

    point()

    Description Draws a point at the given coordinates. The first parameter is the horizontal value for the point, the second value is the vertical value for the point. Syntax screen.fill(xPos, yPos); Parameters xPos: int, the horizontal position of the point yPos: int, the vertical position of the point Returns none Example See also - TFT […]


  • begin

    begin

    Description Must be called to initialize the Arduino GLCD screen before drawing anything. Syntax screen.begin() Parameters none Returns none Example See also - TFT - EsploraTFT Libraries Reference Home The text of the 86Duino reference is a modification of the 86Duino reference, and is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in […]


  • setTextSize()

    setTextSize()

    Description Sets the size of text that follows. The default size is “1”. Each change in size increases the text by 10 pixels in height. That is, size “1” = 10 pixels, size “2” = 20 pixels, and so on. Syntax screen.setTextSize(size); Parameters size: 1~5 (int) Returns none Example See also - TFT - text() […]


  • text()

    text()

    Description Write text to the screen at the given coordinates. Syntax screen.text(text, xPos, yPos); Parameters text: char array, the text you want to write on the screen xPos: int, the location on the x-axis you want to start drawing text to the screen yPos: int, the location on the y-axis you want to start drawing […]


  • setBank()

    setBank()

    Description Select the the bank of virtual EEPROM. This function is available from 86Duino Coding 102. For 86Duino Coding 101 or early versions, you should use set_bank() instead. Syntax EEPROM.setBank(bank) Parameters bank: indicate the bank of virtual EEPROM you want to use. EEPROM_16K is the 16 KB bank of virtual EEPROM and EEPROM_200B is the […]