添加iot设备屏幕旋转设置

This commit is contained in:
Easy 2022-03-26 10:53:30 +08:00
parent 981bc6b7f7
commit f208c5b314

View File

@ -1,3 +1,4 @@
#define MQTT_CLIENT_NAME "DeerEsp-001" // 多个同名设备连接同一台服务器会导致其他下线,所以起一个唯一的名字吧
#define WIFI_SSID "wifi名称" #define WIFI_SSID "wifi名称"
#define WIFI_PASSWORD "wifi密码" #define WIFI_PASSWORD "wifi密码"
#define MQTT_IP "broker.emqx.io" #define MQTT_IP "broker.emqx.io"
@ -5,7 +6,6 @@
#define MQTT_PASSWORD "" #define MQTT_PASSWORD ""
#define MQTT_TOPIC "LB2353" // 这里填PushDeer的Key #define MQTT_TOPIC "LB2353" // 这里填PushDeer的Key
#define MQTT_PORT 1883 #define MQTT_PORT 1883
#define MQTT_CLIENT_NAME "DeerEsp-001" // 多个同名设备连接同一台服务器会导致其他下线,所以起一个唯一的名字吧
// ====== 以下不用修改 =============== // ====== 以下不用修改 ===============
@ -48,6 +48,7 @@ void setup() {
tft.begin(); tft.begin();
// tft.setRotation(1); // 屏幕方向
tft.fillScreen(TFT_BLACK); tft.fillScreen(TFT_BLACK);
tft.setTextColor(0xFFFF,0x0000);tft.setCursor(0, 0, 1);tft.setTextSize(TXT_SCALE);tft.println("Init ..."); tft.setTextColor(0xFFFF,0x0000);tft.setCursor(0, 0, 1);tft.setTextSize(TXT_SCALE);tft.println("Init ...");
Serial.println("tft init"); Serial.println("tft init");