add screen rotation

This commit is contained in:
Easy 2022-04-07 19:00:38 +08:00
parent 91c2d64295
commit 4fbf408eae
2 changed files with 2 additions and 6 deletions

View File

@ -1,3 +1,4 @@
#define SCREEN_ROTATION 0
#define WIFI_SSID "wifi名称"
#define WIFI_PASSWORD "wifi密码"
#define MQTT_CLIENT_NAME "DeerEsp-001" // 多个同名设备连接同一台服务器会导致其他下线,所以起一个唯一的名字吧
@ -54,7 +55,7 @@ void setup() {
tft.begin();
// tft.setRotation(2); // 屏幕方向
tft.setRotation(SCREEN_ROTATION); // 屏幕方向
tft.fillScreen(TFT_BLACK);
tft.setTextColor(0xFFFF,0x0000);tft.setCursor(0, 0, 1);tft.setTextSize(TXT_SCALE);tft.println("Init ...");
Serial.println("tft init");

View File

@ -26,11 +26,6 @@ String mqtt_user_value = "";
String mqtt_client_value = "";
String mqtt_password_value = "";
char* wifi_ssid;
char* wifi_password;
//EspMQTTClient mclient(
// WIFI_SSID,
// WIFI_PASSWORD,