標(biāo)題:
"Hello World" for ILI9341 LCD Arduino代碼
[打印本頁]
作者:
EdwardGU123
時間:
2023-1-1 17:59
標(biāo)題:
"Hello World" for ILI9341 LCD Arduino代碼
/*
Simple "Hello World" for ILI9341 LCD
*/
#include "SPI.h"
#include "Adafruit_GFX.h"
#include "Adafruit_ILI9341.h"
#define TFT_DC 9
#define TFT_CS 10
Adafruit_ILI9341 tft = Adafruit_ILI9341(TFT_CS, TFT_DC);
void setup() {
tft.begin();
tft.setCursor(26, 120);
tft.setTextColor(ILI9341_RED);
tft.setTextSize(3);
tft.println("Hello, TFT!");
tft.setCursor(20, 160);
tft.setTextColor(ILI9341_GREEN);
tft.setTextSize(2);
tft.println("I can has colors?");
// Meme reference:
}
void loop() { }
作者:
3333kkkk
時間:
2023-1-8 11:35
這些頭文件哪里獲取呢
歡迎光臨 (http://www.torrancerestoration.com/bbs/)
Powered by Discuz! X3.1