Function esp_idf_sys::dac_output_voltage
source ยท pub unsafe extern "C" fn dac_output_voltage(
channel: dac_channel_t,
dac_value: u8,
) -> esp_err_t
Expand description
@brief Set DAC output voltage. DAC output is 8-bit. Maximum (255) corresponds to VDD3P3_RTC.
@note Need to configure DAC pad before calling this function. DAC channel 0 is attached to GPIO25, DAC channel 1 is attached to GPIO26 @param channel DAC channel @param dac_value DAC output value
@return - ESP_OK success