2025-11-2500

This commit is contained in:
2025-11-25 00:07:14 +01:00
parent 02291ccd33
commit 0171a4b6e4
4 changed files with 14 additions and 3 deletions

BIN
ESP32-connected.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 315 KiB

BIN
ESP32_mini.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 74 KiB

View File

@@ -90,7 +90,7 @@ build_flags = ${env.build_flags}
-DGATEWAY=\"192.168.127.1\"
-DDNS=\"192.168.127.1\"
-DSECONDARDNS=\"8.8.8.8\"
-DMYIP=\"192.168.127.52\"
-DMYIP=\"192.168.127.53\"
-DSUBNET=\"255.255.255.0\"
-Dmqtt_server=\"hjkmqtt.dedyn.io\"
-DMQTTPORT=61883

View File

@@ -645,7 +645,7 @@ void setup() {
// Define your display layout here, e.g. 1/8 step, and optional SPI pins begin(row_pattern, CLK, MOSI, MISO, SS)
display.begin(16); // Rows-scan pattern 1/32
// Set the color order {RRGGBB, RRBBGG, GGRRBB, GGBBRR, BBRRGG, BBGGRR} (default is RRGGBB)
display.setColorOrder(RRBBGG);
@@ -655,7 +655,18 @@ void setup() {
display.clearDisplay();
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();
configTime(0, 0, NTP_SERVER);
// See https://github.com/nayarsystems/posix_tz_db/blob/master/zones.csv for Timezone codes for your region