LoginSignup
0
0

More than 1 year has passed since last update.

STM32H743とILI9341で遊ぶ「理系フリマで入手」

Last updated at Posted at 2023-04-23

目的
絶対的な処理速度のH743に液晶を繋げて
軽々と処理したい

ピン

13 SCK
12 MISO
11 MOSI

4 CS
3 DC

A1 RST

o_cop474.jpg

o_cop479.jpg





//ili9341_text1_071

//インクルド
#include "SPI.h"
#include "Adafruit_GFX.h"
#include "Adafruit_ILI9341.h"

//設定
#define TFT_RST A1
#define TFT_DC 3
#define TFT_CS 4

//液晶の定義
Adafruit_ILI9341 tft = Adafruit_ILI9341(TFT_CS, TFT_DC);

//初期化
void setup() {

  //シリアルの初期化
  Serial.begin(9600);
  Serial.println("ILI9341 Test!"); 

  //液晶のリセットピンの設定
  pinMode(TFT_RST, OUTPUT);
  digitalWrite(TFT_RST, HIGH);
  //digitalWrite(TFT_RST, LOW);

  //液晶の初期化
  tft.begin();

  //画面のクリア
  tft.fillScreen(ILI9341_BLACK);
  
  //表示位置を0,0にする
  tft.setCursor(0, 0);

  //テキストの表示
  tft.setTextColor(ILI9341_RED);    tft.setTextSize(3);
  tft.println("Hello World!");


}//setup


//無限ループ
void loop(void) {
}//loop




0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0