Arduino  1.8.10
TFT クラス

#include <TFT.h>

TFT の継承関係図
Adafruit_ST7735 Adafruit_GFX Print Print

公開メンバ関数

 TFT (uint8_t CS, uint8_t RS, uint8_t RST)
 
void begin ()
 
- 基底クラス Adafruit_ST7735 に属する継承公開メンバ関数
 Adafruit_ST7735 (uint8_t CS, uint8_t RS, uint8_t SID, uint8_t SCLK, uint8_t RST)
 
 Adafruit_ST7735 (uint8_t CS, uint8_t RS, uint8_t RST)
 
void initB (void)
 
void initG (void)
 
void initR (uint8_t options=INITR_GREENTAB)
 
void setAddrWindow (uint8_t x0, uint8_t y0, uint8_t x1, uint8_t y1)
 
void pushColor (uint16_t color)
 
void fillScreen (uint16_t color)
 
void drawPixel (int16_t x, int16_t y, uint16_t color)
 
void drawFastVLine (int16_t x, int16_t y, int16_t h, uint16_t color)
 
void drawFastHLine (int16_t x, int16_t y, int16_t w, uint16_t color)
 
void fillRect (int16_t x, int16_t y, int16_t w, int16_t h, uint16_t color)
 
void setRotation (uint8_t r)
 
void invertDisplay (boolean i)
 
uint16_t Color565 (uint8_t r, uint8_t g, uint8_t b)
 
- 基底クラス Adafruit_GFX に属する継承公開メンバ関数
 Adafruit_GFX (int16_t w, int16_t h)
 
virtual void drawLine (int16_t x0, int16_t y0, int16_t x1, int16_t y1, uint16_t color)
 
virtual void drawFastVLine (int16_t x, int16_t y, int16_t h, uint16_t color)
 
virtual void drawFastHLine (int16_t x, int16_t y, int16_t w, uint16_t color)
 
virtual void drawRect (int16_t x, int16_t y, int16_t w, int16_t h, uint16_t color)
 
virtual void fillRect (int16_t x, int16_t y, int16_t w, int16_t h, uint16_t color)
 
virtual void fillScreen (uint16_t color)
 
virtual void invertDisplay (boolean i)
 
void drawCircle (int16_t x0, int16_t y0, int16_t r, uint16_t color)
 
void drawCircleHelper (int16_t x0, int16_t y0, int16_t r, uint8_t cornername, uint16_t color)
 
void fillCircle (int16_t x0, int16_t y0, int16_t r, uint16_t color)
 
void fillCircleHelper (int16_t x0, int16_t y0, int16_t r, uint8_t cornername, int16_t delta, uint16_t color)
 
void drawTriangle (int16_t x0, int16_t y0, int16_t x1, int16_t y1, int16_t x2, int16_t y2, uint16_t color)
 
void fillTriangle (int16_t x0, int16_t y0, int16_t x1, int16_t y1, int16_t x2, int16_t y2, uint16_t color)
 
void drawRoundRect (int16_t x0, int16_t y0, int16_t w, int16_t h, int16_t radius, uint16_t color)
 
void fillRoundRect (int16_t x0, int16_t y0, int16_t w, int16_t h, int16_t radius, uint16_t color)
 
void drawBitmap (int16_t x, int16_t y, const uint8_t *bitmap, int16_t w, int16_t h, uint16_t color)
 
void drawChar (int16_t x, int16_t y, unsigned char c, uint16_t color, uint16_t bg, uint8_t size)
 
void setCursor (int16_t x, int16_t y)
 
void setTextColor (uint16_t c)
 
void setTextColor (uint16_t c, uint16_t bg)
 
void setTextSize (uint8_t s)
 
void setTextWrap (boolean w)
 
void setRotation (uint8_t r)
 
virtual void write (uint8_t)
 
int16_t height (void)
 
int16_t width (void)
 
uint8_t getRotation (void)
 
virtual uint16_t newColor (uint8_t red, uint8_t green, uint8_t blue)
 
void background (uint8_t red, uint8_t green, uint8_t blue)
 
void background (color c)
 
void fill (uint8_t red, uint8_t green, uint8_t blue)
 
void fill (color c)
 
void noFill ()
 
void stroke (uint8_t red, uint8_t green, uint8_t blue)
 
void stroke (color c)
 
void noStroke ()
 
void text (const char *text, int16_t x, int16_t y)
 
void text (int value, uint8_t posX, uint8_t posY)
 
void text (long value, uint8_t posX, uint8_t posY)
 
void text (char value, uint8_t posX, uint8_t posY)
 
void textWrap (const char *text, int16_t x, int16_t y)
 
void textSize (uint8_t size)
 
void circle (int16_t x, int16_t y, int16_t r)
 
void point (int16_t x, int16_t y)
 
void line (int16_t x1, int16_t y1, int16_t x2, int16_t y2)
 
void quad (int16_t x1, int16_t y1, int16_t x2, int16_t y2, int16_t x3, int16_t y3, int16_t x4, int16_t y4)
 
void rect (int16_t x, int16_t y, int16_t width, int16_t height)
 
void rect (int16_t x, int16_t y, int16_t width, int16_t height, int16_t radius)
 
void triangle (int16_t x1, int16_t y1, int16_t x2, int16_t y2, int16_t x3, int16_t y3)
 
 Adafruit_GFX (int16_t w, int16_t h)
 
virtual void drawLine (int16_t x0, int16_t y0, int16_t x1, int16_t y1, uint16_t color)
 
virtual void drawFastVLine (int16_t x, int16_t y, int16_t h, uint16_t color)
 
virtual void drawFastHLine (int16_t x, int16_t y, int16_t w, uint16_t color)
 
virtual void drawRect (int16_t x, int16_t y, int16_t w, int16_t h, uint16_t color)
 
virtual void fillRect (int16_t x, int16_t y, int16_t w, int16_t h, uint16_t color)
 
virtual void fillScreen (uint16_t color)
 
virtual void invertDisplay (boolean i)
 
void drawCircle (int16_t x0, int16_t y0, int16_t r, uint16_t color)
 
void drawCircleHelper (int16_t x0, int16_t y0, int16_t r, uint8_t cornername, uint16_t color)
 
void fillCircle (int16_t x0, int16_t y0, int16_t r, uint16_t color)
 
void fillCircleHelper (int16_t x0, int16_t y0, int16_t r, uint8_t cornername, int16_t delta, uint16_t color)
 
void drawTriangle (int16_t x0, int16_t y0, int16_t x1, int16_t y1, int16_t x2, int16_t y2, uint16_t color)
 
void fillTriangle (int16_t x0, int16_t y0, int16_t x1, int16_t y1, int16_t x2, int16_t y2, uint16_t color)
 
void drawRoundRect (int16_t x0, int16_t y0, int16_t w, int16_t h, int16_t radius, uint16_t color)
 
void fillRoundRect (int16_t x0, int16_t y0, int16_t w, int16_t h, int16_t radius, uint16_t color)
 
void drawBitmap (int16_t x, int16_t y, const uint8_t *bitmap, int16_t w, int16_t h, uint16_t color)
 
void drawChar (int16_t x, int16_t y, unsigned char c, uint16_t color, uint16_t bg, uint8_t size)
 
void setCursor (int16_t x, int16_t y)
 
void setTextColor (uint16_t c)
 
void setTextColor (uint16_t c, uint16_t bg)
 
void setTextSize (uint8_t s)
 
void setTextWrap (boolean w)
 
void setRotation (uint8_t r)
 
virtual void write (uint8_t)
 
int16_t height (void)
 
int16_t width (void)
 
uint8_t getRotation (void)
 
virtual uint16_t newColor (uint8_t red, uint8_t green, uint8_t blue)
 
void background (uint8_t red, uint8_t green, uint8_t blue)
 
void background (color c)
 
void fill (uint8_t red, uint8_t green, uint8_t blue)
 
void fill (color c)
 
void noFill ()
 
void stroke (uint8_t red, uint8_t green, uint8_t blue)
 
void stroke (color c)
 
void noStroke ()
 
void text (const char *text, int16_t x, int16_t y)
 
void textWrap (const char *text, int16_t x, int16_t y)
 
void textSize (uint8_t size)
 
void circle (int16_t x, int16_t y, int16_t r)
 
void point (int16_t x, int16_t y)
 
void line (int16_t x1, int16_t y1, int16_t x2, int16_t y2)
 
void quad (int16_t x1, int16_t y1, int16_t x2, int16_t y2, int16_t x3, int16_t y3, int16_t x4, int16_t y4)
 
void rect (int16_t x, int16_t y, int16_t width, int16_t height)
 
void rect (int16_t x, int16_t y, int16_t width, int16_t height, int16_t radius)
 
void triangle (int16_t x1, int16_t y1, int16_t x2, int16_t y2, int16_t x3, int16_t y3)
 
- 基底クラス Print に属する継承公開メンバ関数
 Print ()
 
int getWriteError ()
 
void clearWriteError ()
 
size_t write (const char *str)
 
virtual size_t write (const uint8_t *buffer, size_t size)
 
size_t write (const char *buffer, size_t size)
 
virtual int availableForWrite ()
 
size_t print (const __FlashStringHelper *)
 
size_t print (const String &)
 
size_t print (const char[])
 
size_t print (char)
 
size_t print (unsigned char, int=DEC)
 
size_t print (int, int=DEC)
 
size_t print (unsigned int, int=DEC)
 
size_t print (long, int=DEC)
 
size_t print (unsigned long, int=DEC)
 
size_t print (double, int=2)
 
size_t print (const Printable &)
 
size_t println (const __FlashStringHelper *)
 
size_t println (const String &s)
 
size_t println (const char[])
 
size_t println (char)
 
size_t println (unsigned char, int=DEC)
 
size_t println (int, int=DEC)
 
size_t println (unsigned int, int=DEC)
 
size_t println (long, int=DEC)
 
size_t println (unsigned long, int=DEC)
 
size_t println (double, int=2)
 
size_t println (const Printable &)
 
size_t println (void)
 
virtual void flush ()
 

その他の継承メンバ

- 基底クラス Print に属する継承限定公開メンバ関数
void setWriteError (int err=1)
 
- 基底クラス Adafruit_GFX に属する継承限定公開変数類
const int16_t WIDTH
 
const int16_t HEIGHT
 
int16_t _width
 
int16_t _height
 
int16_t cursor_x
 
int16_t cursor_y
 
uint16_t textcolor
 
uint16_t textbgcolor
 
uint8_t textsize
 
uint8_t rotation
 
boolean wrap
 
color strokeColor
 
bool useStroke
 
color fillColor
 
bool useFill
 
int16_t WIDTH
 
int16_t HEIGHT
 

詳解

The Arduino LCD is a ST7735-based device. By default, it is mounted horizontally. TFT class follows the convention of other Arduino library classes by adding a begin() method to be called in the setup() routine.

著者
Enrico Gueli enric.nosp@m.o.gu.nosp@m.eli@g.nosp@m.mail.nosp@m..com

TFT.h45 行目に定義があります。

構築子と解体子

◆ TFT()

TFT::TFT ( uint8_t  CS,
uint8_t  RS,
uint8_t  RST 
)

TFT.cpp38 行目に定義があります。

39  : Adafruit_ST7735(CS, RS, RST)
40 {
41  // as we already know the orientation (landscape, therefore rotated),
42  // set default width and height without need to call begin() first.
45 }
#define ST7735_TFTWIDTH
#define RST
Definition: iox128a1.h:2574
Adafruit_ST7735(uint8_t CS, uint8_t RS, uint8_t SID, uint8_t SCLK, uint8_t RST)
int16_t _height
Definition: Adafruit_GFX.h:170
#define CS
Definition: io90scr100.h:1278
int16_t _width
Definition: Adafruit_GFX.h:170
#define ST7735_TFTHEIGHT

関数詳解

◆ begin()

void TFT::begin ( void  )

TFT.cpp47 行目に定義があります。

47  {
48 //initR(INITR_REDTAB);
49  initG();
50  setRotation(1);
51 }
void setRotation(uint8_t r)

このクラス詳解は次のファイルから抽出されました: