if("${IDF_VERSION_MAJOR}.${IDF_VERSION_MINOR}" VERSION_GREATER_EQUAL "5.3")
    set(REQ esp_driver_i2c)
else()
    set(REQ driver)
endif()

idf_component_register(SRCS "custom_io_expander_ch32v003.c"
                       INCLUDE_DIRS "include"
                       REQUIRES esp32-camera esp_io_expander custom_io_expander_ch32v003 esp_jpeg nvs_flash esp_wifi esp_http_server)