Is there solution for "legacy adc calibration driver is deprecated" warning?

I have compile "#warning “legacy adc calibration driver is deprecated, please migrate to use esp_adc/adc_cali.h and esp_adc/adc_cali_scheme.h” and “legacy adc driver is deprecated, please migrate to use esp_adc/adc_oneshot.h and esp_adc/adc_continuous.h for oneshot mode and continuous mode drivers respectively” with moisture sensor.
Can somebody tell, is there solution for that?
Thanks

1 Like

I have the same issue. I follow this post with interest…:slight_smile:

1 Like

Same, getting that ADC error with:

esp32:
  board: esp32-c6-devkitc-1
  flash_size: 4MB
  variant: esp32c6
  framework:
    type: esp-idf
    version: "5.3.1"
    platform_version: 6.9.0
    sdkconfig_options:
      CONFIG_OPENTHREAD_ENABLED: n
      CONFIG_ENABLE_WIFI_STATION: y
      CONFIG_USE_MINIMAL_MDNS: y
      CONFIG_ESPTOOLPY_FLASHSIZE_4MB: y

Any clues anyone?

Adding this, from elsewhere on the forum or Github, got my Firebeetle2 ESP32-C6 working with ADC:

external_components:
  - source:
      type: git
      url: https://github.com/lboue/esphome
      ref: adc_oneshot
    components: [ adc ]
    refresh: 0s # Do not update automatically