Function esp_idf_sys::touch_pad_set_voltage

source ยท
pub unsafe extern "C" fn touch_pad_set_voltage(
    refh: touch_high_volt_t,
    refl: touch_low_volt_t,
    atten: touch_volt_atten_t,
) -> esp_err_t
Expand description

@brief Set touch sensor high voltage threshold of chanrge. The touch sensor measures the channel capacitance value by charging and discharging the channel. So the high threshold should be less than the supply voltage. @param refh the value of DREFH @param refl the value of DREFL @param atten the attenuation on DREFH @return - ESP_OK on success - ESP_ERR_INVALID_ARG if argument is wrong