begin() |
Initialize it for use. |
begin(); |
sleep() |
Switch the display to energy saving mode |
sleep(); |
wakeup() |
Restore the display from energy saving mode |
wakeup(); |
setBrightness() |
Adjust the display backlight. |
setBrightness(uint8_t brightness); |
progressBar() |
Display a bar that shows the progress. |
progressBar(int x, int y, int w, int h, uint8_t val); |
qrcode() |
Generate a QR code. |
qrcode(..); |
drawBitmap() |
Draw a bitmap |
drawbitmap() |
drawBmpFile() |
Read a bitmap from a file and draw it. |
drawBmpFile(fs::FS &fs, const char *path, uint16_t x, uint16_t y); |
drawJpg() |
Read JPEG data from memory and draw it. |
void drawJpg(const uint8_t *jpg_data, size_t jpg_len, uint16_t x = 0, uint16_t y = 0, uint16_t maxWidth = 0, uint16_t maxHeight = 0, uint16_t offX = 0, uint16_t offY = 0, jpeg_div_t scale = JPEG_DIV_NONE); |
drawJpgFile() |
Read JPEG data from a file and draw it. |
void drawJpgFile(fs::FS &fs, const char *path, uint16_t x = 0, uint16_t y = 0, uint16_t maxWidth = 0, uint16_t maxHeight = 0, uint16_t offX = 0, uint16_t offY = 0, jpeg_div_t scale = JPEG_DIV_NONE); |
fillScreen() |
Fill the entire screen with the specified color. |
fillScreen(uint16_t color); |
setTextColor() |
Set the foreground color and background color of the displayed text.If backgroundcolor is not given, current background color is used |
setTextColor(uint16_t color, uint16_t backgroundcolor); |
setCursor() |
Move the cursor to (x0, y0) |
setCursor(uint16_t x0, uint16_t y0); |
getCursorX() |
get the cursorpos in x. |
uint16_t getCursorX(void); |
getCursorY() |
get the cursorpos in x. |
uint16_t getCursorY(void); |
setTextSize() |
set the Size of Text. |
setTextSize(uint8_t);
|
clear() |
fill color use of clear screen. |
clear(uint16_t color); |
drawPixel() |
Draw a color-point at position (x, y) |
drawPixel(int16_t x, int16_t y, uint16_t color); |
alphaBlend() |
Blend foreground and background and return new colour. |
uint16_t alphaBlend(uint8_t alpha, uint16_t fgc, uint16_t bgc); |
drawChar() |
Draws a straight line of the specified color from the specified start point to the end point. |
drawChar(int32_t x, int32_t y, uint16_t c, uint32_t color, uint32_t bg, uint8_t size); |
drawChar() |
Draws a straight line of the specified start point to the end point. |
drawChar(int16_t uniCode, int32_t x, uint16_t y, uint8_t font); |
drawNumber() |
draw a long integer. |
drawNumber(long long_num, int32_t poX, int32_t poY); |
drawFloat() |
drawFloat, prints 7 non zero digits maximum |
int16_t drawFloat(float floatNumber, uint8_t dp, int32_t poX, int32_t poY); |
drawFastVLine() |
Draw a vertical line from X to Y. |
drawFastVLine(int32_t x, int32_t y, int32_t h, uint32_t color); |
drawFastHLine() |
Draw a horizontal line from X to Y. |
drawFastHLine(int32_t x, int32_t y, int32_t w, uint32_t color); |
drawLine() |
Draw the line from point (x,y) to point (x1,y1) |
drawLine(int16_t x0, int16_t y0, int16_t x1, int16_t y1, uint16_t color); |
drawCircleHelper() |
Draw a quarter circle with the center at the point x0 and y0, with radius r, and a quarter C, and a color from 0 to 65535 |
drawCircleHelper( int32_t x0, int32_t y0, int32_t r, uint8_t cornername, uint32_t color); |
drawCircle() |
Draw a circle on point(x0, y0), Radis is r with color |
drawCircle(int32_t x0, int32_t y0, int32_t r, uint32_t color); |
fillCircle() |
Function: Draw a filled circle on point(x0, y0), Radis is r with color |
fillCircle(int32_t x0, int32_t y0, int32_t r, uint32_t color); |
drawTriangle() |
Draw the triangel between points (x,y), (x1,y1) and (x2,y2). |
drawTriangle(int16_t x0, int16_t y0, int16_t x1, int16_t y1, int16_t x2, int16_t y2, uint16_t color); |
fillTriangle() |
Fill the triangel between points (x,y), (x1,y1) and (x2,y2) |
fillTriangle(int16_t x0, int16_t y0, int16_t x1, int16_t y1, int16_t x2, int16_t y2, uint16_t color); |
drawRect() |
Draw the rectangle from the upper left point at (x,y) and width and height |
drawRect(int16_t x, int16_t y, int16_t w, int16_t h, uint16_t color); |
fillRect() |
Fill the rectangle from the upper left point at (x,y) and width and height |
fillRect(int16_t x, int16_t y, int16_t w, int16_t h,uint16_t color); |
drawRoundRect() |
Draw the rectangle with rounded corners from the upper left point at (x,y) and width and height. Corner radius is given by radius argument. |
drawRoundRect(int16_t x0, int16_t y0, int16_t w,int16_t h, int16_t radius, uint16_t color); |
fillRoundRect() |
Draw a filled square with the upper left point (x, y) and width and height. |
fillRoundRect(int16_t x, int16_t y, int16_t w, int16_t h, int16_t r, [uint16_t color]); |
drawEllipse() |
Draw an ellipse with the top left point (x, y) and the width and height. |
drawEllipse(int16_t x0, int16_t y0, int32_t rx, int32_t ry, uint16_t color); |
fillEllipse() |
Draw a filled ellipse, specifying the top left point (x, y) and the width and height. |
fillEllipse(int16_t x0, int16_t y0, int32_t rx, int32_t ry, uint16_t color); |
color565() |
Change to the color code (rgb 565) used in the function. |
color565(uint8_t red, uint8_t green, uint8_t blue); |
setRotation() |
Rotate the screen. |
setRotation(uint8_t r); |
invertDisplay() |
Reverse the screen color in negative / positive. |
invertDisplay(boolean i); |
loadFont() |
Load a font |
loadFont(String fontName, fs::FS &ffs); |
setTextWrap() |
Whether to automatically wrap the display |
setTextWrap(boolean wrapX, boolean wrapY) |
setTextDatum() |
Set the text position reference datum |
setTextDatum(uint8_t datum) |
setTextPadding() |
text background padding some pixel to over-write the old text |
setTextPadding(uint16_t x_width) |
getRotation() |
Return the rotation value (as used by setRotation()) |
uint8_t getRotation(void) |
width() |
Return the pixel width of display (per current rotation) |
int16_t width(void) |
hight() |
Return the pixel height of display (per current rotation) |
int16_t height(void) |
textWidth() |
Return the width in pixels of a string in a given font |
int16_t textWidth(const String& string) |
getTextDatum() |
Return the text datum value (as used by setTextDatum()) |
uint8_t setRotation(void) |
drawRightString() |
draw string right justified to dX,deprecated, use setTextDatum() |
int16_t drawRightString(const String& string, int32_t dX, int32_t poY, uint8_t font) |
fontHeight() |
rn the height of a font (yAdvance for free fonts) |
int16_t fontHeight(void) |
fontsLoaded() |
Returns whether you are loading a font |
fontsLoaded(); |
print() |
Start printing text at the current position of the screen. |
print(); |
drawString() |
Draw a String of characters |
drawString(const char *string, int32_t poX, int32_t poY, uint8_t font);
drawString(const char *string, int32_t poX, int32_t poY);
drawString(const String& string, int32_t poX, int32_t poY, uint8_t font);
drawString(const String& string, int32_t poX, int32_t poY); |
printf() |
Draw the specified string. |
printf("Format specification",arg1...); |
deleteSprite() |
Delete the sprite to free up memory (RAM) |
deleteSprite(void) |
setColorDepth() |
set the colour depth to 1, 8 or 16 bits,Can be used to change depth an existing sprite |
void setColorDepth(int8_t bit) |
fillSprite() |
Fill the whole sprite with defined colour |
void fillSprite(uint32_t color) |
pushSprite() |
Push the sprite to the TFT at x, y,Optionally a "transparent" colour can be defined, pixels of that colour will not be rendered |
void pushSprite(int32_t x, int32_t y, uint16_t transparent) |
width() |
Return the width of the sprite |
int16_t width(void) |
height() |
Return the height of the sprite |
int16_t height(void) |