TFT.begin()

名称

TFT.begin()

説明

描画する前にArduino GLCDスクリーンを初期化するために呼び出す必要がある。

書式

void TFT::begin();

引数

なし。

戻り値

なし。

使用例

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
#include <SPI.h>
#include <TFT.h>            // Arduino LCD library

#define cs   10
#define dc   9
#define rst  8

TFT screen = TFT(cs, dc, rst);

void setup() {
  // initialize the screen
  screen.begin();

  // make the background white
  screen.background(255,255,255);
}

void loop() {

}

オリジナルのページ

https://www.arduino.cc/reference/en/libraries/tft/begin/

最終更新日

January 8, 2024

inserted by FC2 system