Tft.println()

来自Microduino Wikipedia
跳转至: 导航搜索


tft.println(" ")


作用

设置在TFT屏幕上打印文字的内容


参数

引号里写打印的内容


示例

#include <Adafruit_GFX.h>    // Core graphics library
#include <Adafruit_ST7735.h> // Hardware-specific library
#include <SPI.h>

#define TFT_CS     D5
#define TFT_RST    -1  // you can also connect this to the Arduino reset
#define TFT_DC     D4

Adafruit_ST7735 tft = Adafruit_ST7735(TFT_CS,  TFT_DC, TFT_RST);

void setup(void) {
  tft.initR(INITR_BLACKTAB);   // initialize a ST7735S chip, black tab
  tft.fillScreen(ST7735_BLACK);
  tft.setCursor(10, 40);
  tft.setTextColor(ST7735_YELLOW);
  tft.setTextSize(0);
  tft.println("Microduino!");
}

void loop(){
}


返回TFT_ST7735编程手册界面