代码拉取完成,页面将自动刷新
同步操作将从 志宇益生菌/22.7 esp32cam多功能摄像机 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
//配置部分参考
//https://blog.csdn.net/qq_40181592/article/details/119176805
#include <SPI.h> //导入库
#include <TFT_eSPI.h>
TFT_eSPI tft = TFT_eSPI();
//
//esp32 cam 可用引脚: io 0、1、2、3、4、12、13、14、15、16、33
//在TFT_eSPI 的 User_Setup.h下设置引脚: 没写的不接io
//#define TFT_MOSI 13
//#define TFT_SCLK 14
//#define TFT_CS 15 // Chip select control pin
//#define TFT_DC 2 // Data Command control pin
//#define TFT_RST 12
void setup() {
Serial.begin(115200);
Serial.println("hello");
// put your setup code here, to run once:
tft.init(); //初始化
tft.fillScreen(TFT_BLACK); //屏幕颜色
tft.setCursor(10, 10, 1); //设置起始坐标(10, 10),2 号字体
tft.setTextColor(TFT_YELLOW); //设置文本颜色为白色
tft.setTextSize(2); //设置文字的大小 (1~7)
tft.println("TFT_Text"); //显示文字
tft.fillCircle(30,30,10,TFT_BLUE); //画圆
tft.drawLine(10,50, 118, 50, TFT_WHITE); //画线
tft.drawPixel(70,70,TFT_RED); //画点
tft.setTextColor(TFT_WHITE,TFT_BLUE); //设置文字颜色和背景颜色
tft.setCursor(10, 80, 1); //设置起始坐标(10, 10),2 号字体
tft.println("TFT_Text"); //显示文字
}
void loop() {
Serial.println("running");
delay(1000);
// put your main code here, to run repeatedly:
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。