2025-11-2500
This commit is contained in:
15
src/main.cpp
15
src/main.cpp
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user