mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2025-08-08 03:22:21 +00:00
.
This commit is contained in:
@@ -82,29 +82,24 @@ void setup() {
|
||||
xTaskCreate(TaskStatusLEDCode, "Status LED Task", 4096, NULL, 10, &TaskStatusLED);
|
||||
xTaskCreate(TaskSensorValuesCode, "Status LED Task", 4096, NULL, 5, &TaskSensorValues);
|
||||
}
|
||||
|
||||
// Initialize ePaper display
|
||||
display.init(115200);
|
||||
display.fillScreen(GxEPD_BLACK);
|
||||
display.update();
|
||||
display.fillScreen(GxEPD_WHITE);
|
||||
display.setTextColor(GxEPD_BLACK);
|
||||
display.setFont(&FreeMono9pt7b);
|
||||
//display.setCursor(205, 10);
|
||||
//display.print("ESP32_DisplayNode"); // Takes 195 pixels in width
|
||||
|
||||
display.setCursor(5, 5);
|
||||
display.setFont(&TomThumb);
|
||||
display.print("10.100.50.105");
|
||||
display.update();
|
||||
}
|
||||
|
||||
void loop() {
|
||||
|
||||
/*digitalWrite(LED_PIN, LOW);
|
||||
delay(250);
|
||||
digitalWrite(LED_PIN, HIGH);
|
||||
delay(250);
|
||||
digitalWrite(LED_PIN, LOW);
|
||||
delay(250);
|
||||
digitalWrite(LED_PIN, HIGH);
|
||||
delay(750);
|
||||
Serial.println("Main loop");
|
||||
Serial.print("Temperature: ");
|
||||
Serial.print(bme.readTemperature());
|
||||
Serial.println("°C");
|
||||
Serial.print("Humidity: ");
|
||||
Serial.print(bme.readHumidity());
|
||||
Serial.println("%");
|
||||
Serial.print("Barometric Pressure: ");
|
||||
Serial.print(bme.readPressure() / 100.0F);
|
||||
Serial.println(" kPa");
|
||||
Serial.println("");*/
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user