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

RichPiano
Posts: 123
Joined: Mon May 18, 2020 2:51 pm

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

Postby RichPiano » Thu Feb 23, 2023 5:28 pm

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.

ESP_Sprite
Posts: 9766
Joined: Thu Nov 26, 2015 4:08 am

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

Postby ESP_Sprite » Fri Feb 24, 2023 1:26 am

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.

Who is online

Users browsing this forum: Bing [Bot] and 87 guests