mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2025-10-25 21:02:16 +00:00
tasks
This commit is contained in:
@@ -76,7 +76,8 @@ void app_main(void)
|
|||||||
bme280_default_init(bme280);
|
bme280_default_init(bme280);
|
||||||
|
|
||||||
// Set the BME280 sampling parameters
|
// Set the BME280 sampling parameters
|
||||||
bme280_set_sampling(bme280, BME280_MODE_NORMAL, BME280_SAMPLING_X1, BME280_SAMPLING_X1, BME280_SAMPLING_X1, BME280_FILTER_OFF, BME280_STANDBY_MS_1000);
|
bme280_set_sampling(bme280, BME280_MODE_NORMAL, BME280_SAMPLING_X1, BME280_SAMPLING_X1, BME280_SAMPLING_X1,
|
||||||
|
BME280_FILTER_OFF, BME280_STANDBY_MS_1000);
|
||||||
|
|
||||||
// Create FreeRTOS tasks for reading and printing sensor values
|
// Create FreeRTOS tasks for reading and printing sensor values
|
||||||
xTaskCreate(read_sensor_task, "read_sensor_task", 2048, NULL, 5, NULL);
|
xTaskCreate(read_sensor_task, "read_sensor_task", 2048, NULL, 5, NULL);
|
||||||
|
|||||||
Reference in New Issue
Block a user