mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2025-08-08 12:11:00 +00:00
.
This commit is contained in:
@@ -51,6 +51,7 @@ void setup() {
|
|||||||
pinMode(LED_PIN, OUTPUT);
|
pinMode(LED_PIN, OUTPUT);
|
||||||
|
|
||||||
Serial.println("GPIO setup done");
|
Serial.println("GPIO setup done");
|
||||||
|
xTaskCreatePinnedToCore(TaskStatusLEDCode, "Status LED Task", 4096, NULL, 10, &TaskStatusLED, 1);
|
||||||
|
|
||||||
Serial.println("Setting up BME280 sensor");
|
Serial.println("Setting up BME280 sensor");
|
||||||
Wire.setPins(SDA_PIN, SCL_PIN);
|
Wire.setPins(SDA_PIN, SCL_PIN);
|
||||||
@@ -71,6 +72,10 @@ void setup() {
|
|||||||
Serial.println("Could not find a valid BME/BMP280 sensor, check wiring!");
|
Serial.println("Could not find a valid BME/BMP280 sensor, check wiring!");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
Serial.println("Sensor was found.");
|
||||||
|
xTaskCreatePinnedToCore(TaskSensorValuesCode, "Status LED Task", 4096, NULL, 10, &TaskSensorValues, 1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void loop() {
|
void loop() {
|
||||||
|
Reference in New Issue
Block a user