1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
| tft.init();
tft.fillScreen(uint32_t color);
tft.setRotation(uint8_t r);
tft.setCursor(int16_t x, int16_t y, uint8_t font);
tft.setTextColor(uint16_t color);
tft.setTextColor(uint16_t fgcolor, uint16_t bgcolor);
tft.setTextSize(uint8_t size);
display.loadFont(Final_Frontier_28);
display.unloadFont();
tft.print("Hello World!"); tft.println("Hello World!");
tft.drawString(String, int32_t x, int32_t y, uint8_t font); tft.drawCentreString(String, int32_t x, int32_t y, uint8_t font); tft.drawRightString(String, int32_t x, int32_t y, uint8_t font);
tft.drawPixel(int32_t x, int32_t y, uint32_t color);
tft.drawLine(int32_t xs, int32_t ys, int32_t xe, int32_t ye, uint32_t color);
tft.drawFastHLine(int32_t x, int32_t y, int32_t w, uint32_t color);
tft.drawFastVLine(int32_t x, int32_t y, int32_t h, uint32_t color);
tft.drawCircle(int32_t x, int32_t y, int32_t r, uint32_t color);
tft.fillCircle(int32_t x, int32_t y, int32_t r, uint32_t color);
tft.drawEllipse(int32_t x, int32_t y, int32_t w, int32_t h, uint32_t color);
tft.fillEllipse(int32_t x, int32_t y, int32_t w, int32_t h, uint32_t color);
tft.drawRect(int32_t x, int32_t y, int32_t w, int32_t h, uint32_t color);
tft.fillRect(int32_t x, int32_t y, int32_t w, int32_t h, uint32_t color);
tft.drawRoundRect(int32_t x, int32_t y, int32_t w, int32_t h, int32_t radius, uint32_t color);
tft.drawRoundRect(int32_t x, int32_t y, int32_t w, int32_t h, int32_t radius, uint32_t color);
tft.drawTriangle(int32_t x1, int32_t y1, int32_t x2, int32_t y2, int32_t x3, int32_t y3, uint32_t color);
tft.drawTriangle(int32_t x1, int32_t y1, int32_t x2, int32_t y2, int32_t x3, int32_t y3, uint32_t color);
tft.pushImage(int32_t x, int32_t y, int32_t w, int32_t h, data);
|