[][src]Function esp_idf_sys::dac_output_voltage

pub unsafe extern "C" fn dac_output_voltage(
    channel: dac_channel_t,
    dac_value: u8
) -> esp_err_t

@brief Set DAC output voltage.

DAC output is 8-bit. Maximum (255) corresponds to VDD.

@note Need to configure DAC pad before calling this function. DAC channel 1 is attached to GPIO25, DAC channel 2 is attached to GPIO26

@param channel DAC channel @param dac_value DAC output value

@return - ESP_OK success - ESP_ERR_INVALID_ARG Parameter error