turgu1/ESP-IDF-InkPlate

Usage of the legacy adc driver is deprecated in ESP-IDF v5.0 onwards

Opened this issue · 0 comments

Current version of esp-idf-inkplate is using a now deprecated esp-idf component. It's working correctly in IDF v5.0, but it is expected to be fully removed in future versions.

In file included from C:/Users/marek/GitHub/esp-idf-inkplate-bw-fix-poc/components/inkplate/include/services/esp.hpp:16,
                 from C:/Users/marek/GitHub/esp-idf-inkplate-bw-fix-poc/components/inkplate/include/drivers/mcp23017.hpp:29,
                 from C:/Users/marek/GitHub/esp-idf-inkplate-bw-fix-poc/components/inkplate/include/drivers/inkplate_platform.hpp:24,
                 from C:/Users/marek/GitHub/esp-idf-inkplate-bw-fix-poc/components/inkplate/include/graphical/inkplate.hpp:22,
                 from C:/Users/marek/GitHub/esp-idf-inkplate-bw-fix-poc/main/main.cpp:20:
C:/Espressif/frameworks/esp-idf-v5.0.2/components/driver/deprecated/driver/adc.h:19:2: warning: #warning "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" [-Wcpp]
   19 | #warning "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"
      |  ^~~~~~~

Espressif recommends using a new adc_oneshot driver (link)