esp-idf-lib/components/hdc1000/CMakeLists.txt@5872b972e553
esp-idf-lib/components/hdc1000/CMakeLists.txt
Thu, 13 Apr 2023 15:28:11 +0200
- author
- Michiel Broek <mbroek@mbse.eu>
- date
- Thu, 13 Apr 2023 15:28:11 +0200
- changeset 28
- 5872b972e553
- parent 1
-
1c9894662795
- permissions
- -rw-r--r--
Added INA219 power save mode again, it works now. Don't measure shunt voltage and current, just the shunt voltage and calculate the current.
if(${IDF_VERSION_MAJOR} STREQUAL 4 AND ${IDF_VERSION_MINOR} STREQUAL 1 AND ${IDF_VERSION_PATCH} STREQUAL 3)
set(req i2cdev log esp_idf_lib_helpers)
else()
set(req i2cdev log esp_idf_lib_helpers esp_timer)
endif()
idf_component_register(
SRCS hdc1000.c
INCLUDE_DIRS .
REQUIRES ${req}
)