mirror of
https://github.com/easychen/pushdeer.git
synced 2025-02-22 16:04:56 +08:00
添加iot设备屏幕旋转设置
This commit is contained in:
parent
981bc6b7f7
commit
f208c5b314
@ -1,3 +1,4 @@
|
||||
#define MQTT_CLIENT_NAME "DeerEsp-001" // 多个同名设备连接同一台服务器会导致其他下线,所以起一个唯一的名字吧
|
||||
#define WIFI_SSID "wifi名称"
|
||||
#define WIFI_PASSWORD "wifi密码"
|
||||
#define MQTT_IP "broker.emqx.io"
|
||||
@ -5,7 +6,6 @@
|
||||
#define MQTT_PASSWORD ""
|
||||
#define MQTT_TOPIC "LB2353" // 这里填PushDeer的Key
|
||||
#define MQTT_PORT 1883
|
||||
#define MQTT_CLIENT_NAME "DeerEsp-001" // 多个同名设备连接同一台服务器会导致其他下线,所以起一个唯一的名字吧
|
||||
|
||||
|
||||
// ====== 以下不用修改 ===============
|
||||
@ -48,6 +48,7 @@ void setup() {
|
||||
|
||||
|
||||
tft.begin();
|
||||
// tft.setRotation(1); // 屏幕方向
|
||||
tft.fillScreen(TFT_BLACK);
|
||||
tft.setTextColor(0xFFFF,0x0000);tft.setCursor(0, 0, 1);tft.setTextSize(TXT_SCALE);tft.println("Init ...");
|
||||
Serial.println("tft init");
|
||||
|
Loading…
x
Reference in New Issue
Block a user