2025-11-2500
This commit is contained in:
BIN
ESP32-connected.png
Normal file
BIN
ESP32-connected.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 315 KiB |
BIN
ESP32_mini.png
Normal file
BIN
ESP32_mini.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 74 KiB |
@@ -90,7 +90,7 @@ build_flags = ${env.build_flags}
|
|||||||
-DGATEWAY=\"192.168.127.1\"
|
-DGATEWAY=\"192.168.127.1\"
|
||||||
-DDNS=\"192.168.127.1\"
|
-DDNS=\"192.168.127.1\"
|
||||||
-DSECONDARDNS=\"8.8.8.8\"
|
-DSECONDARDNS=\"8.8.8.8\"
|
||||||
-DMYIP=\"192.168.127.52\"
|
-DMYIP=\"192.168.127.53\"
|
||||||
-DSUBNET=\"255.255.255.0\"
|
-DSUBNET=\"255.255.255.0\"
|
||||||
-Dmqtt_server=\"hjkmqtt.dedyn.io\"
|
-Dmqtt_server=\"hjkmqtt.dedyn.io\"
|
||||||
-DMQTTPORT=61883
|
-DMQTTPORT=61883
|
||||||
|
|||||||
11
src/main.cpp
11
src/main.cpp
@@ -656,6 +656,17 @@ void setup() {
|
|||||||
display_update_enable(true);
|
display_update_enable(true);
|
||||||
//--------------------------------------------------
|
//--------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
//------- TEST -----------
|
||||||
|
display.fillRect(31, 5, 2, 6, myRED);
|
||||||
|
delay(2000);
|
||||||
|
display.fillRect(31, 5, 2, 6, myGREEN);
|
||||||
|
delay(2000);
|
||||||
|
display.fillRect(31, 5, 2, 6, myBLUE);
|
||||||
|
delay(2000);
|
||||||
|
display.fillRect(31, 5, 2, 6, myBLACK);
|
||||||
|
delay(2000);
|
||||||
|
//----------------------
|
||||||
print_wifi_status();
|
print_wifi_status();
|
||||||
configTime(0, 0, NTP_SERVER);
|
configTime(0, 0, NTP_SERVER);
|
||||||
// See https://github.com/nayarsystems/posix_tz_db/blob/master/zones.csv for Timezone codes for your region
|
// See https://github.com/nayarsystems/posix_tz_db/blob/master/zones.csv for Timezone codes for your region
|
||||||
|
|||||||
Reference in New Issue
Block a user