You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 20, 2021. It is now read-only.
Page (int) : The number of the page which contains the new label
X (unsigned int) : The X coordinate of the new label in pixels. You can use CENTER or RIGHT too.
Y (unsigned int) : The Y coordinate of the new label in pixels. You can use CENTER or RIGHT too.
text (String) : The new label's content
textcolor (unsigned int) : A 16-bit number representing the text (foreground) color of the label
font (const GFXfont*) : pointer to an Adafruit GFX font object. Use NULL for classic 5*8 font, or &<font name>
textSizeX (byte) optional: Text X size to be used in tft.setTextSize(). It causes text to be blocky (because fonts are raster). If you don't want that, use a bigger font. Default: 1
textSizeX (byte) optional: Text Y size to be used in tft.setTextSize(). It causes text to be blocky (because fonts are raster). If you don't want that, use a bigger font. Default: 1
enabled (bool) optional: If false, the label is darkened. Default: true
visible (bool) optional: If false, the label is hidden (not shown). Default: true
Returns
The index of the new label
Examples
addButton(PAGE_MAIN,CENTER,0,"Welcome",TFT_WHITE); // A white 'Welcome' in top center of the page with classic fontaddButton(PAGE_MAIN,CENTER,CENTER,"Loading...",TFT_BLACK,&FreeBigFont); // A black 'Loading...' in the middle of the page with a big font