Page 1 of 1

Status of digital to analog converter (DAC) in IDF > 5.0

Posted: Thu Feb 23, 2023 5:28 pm
by RichPiano
I wanted to write a test-app for the DAC converter in the esp32, however the examples in the doc are not available on the esp-idf 5.0 branch and it seems that there is no "driver/dac_oneshot.h"... Is the component being discontinued or excluded for the moment?

EDIT: Legacy dac.h is available for esp32 in driver/esp32/include, but it only declares dac over i2s:

Code: Select all

esp_err_t dac_i2s_enable(void);
esp_err_t dac_i2s_disable(void);
No dac_oneshot_new_channel / dac_oneshot_output_voltage which I need.

Re: Status of digital to analog converter (DAC) in IDF > 5.0

Posted: Fri Feb 24, 2023 1:26 am
by ESP_Sprite
Looks like you're looking at the docs for the current master, not the 5.0 release (you can select the release in the dropdown box on the left). this is for the 5.0 release, and it mentions a small inline example using dac.h.