espressif / esp-bsp

Board support components for Espressif development boards
Other
162 stars 85 forks source link

[DS18B20] Feature Request: Trigger temperature conversion on all devices (BSP-348) #200

Open CJCombrink opened 11 months ago

CJCombrink commented 11 months ago

When working with more than one DS18B20 temperature sensors, three in my case, it would be nice to call ds18b20_trigger_temperature_conversion() on all three and then only delay for the required amount before reading the temperatures from all three.

The current implementation forces me to wait x ms for each sensor where ideally I could only wait once.

I would imagine an function defined as follow:

esp_err_t ds18b20_trigger_temperature_conversions(const ds18b20_device_handle_t *ds18b20, uint8_t ds18b20_size );
espzav commented 8 months ago

@suda-morris FYI

VojtechBartoska commented 3 months ago

@suda-morris Can you please share your 2 cents regarding this? Thanks