Skip to content

Commit 1bf2867

Browse files
author
Руслан Ус
committed
chore: switch to eil-cmake-utils
1 parent 66c9c70 commit 1bf2867

8 files changed

Lines changed: 14 additions & 23 deletions

File tree

.gitmodules

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
[submodule "common"]
2-
path = common
3-
url = https://github.com/esp-idf-lib/common.git
1+
[submodule "eil-cmake-utils"]
2+
path = eil-cmake-utils
3+
url = git@github.com:esp-idf-lib/eil-cmake-utils.git

CMakeLists.txt

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
1+
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR}/eil-cmake-utils/cmake)
2+
include(eil_check_idf_features)
3+
eil_check_idf_has_esp_drivers()
4+
15
idf_component_register(
26
SRCS tca6424a.c
37
INCLUDE_DIRS .
48
REQUIRES i2cdev log esp_idf_lib_helpers
59
)
610

7-
# include common cmake file for components
8-
set(ESP_IDF_LIB_CMAKE ${CMAKE_CURRENT_LIST_DIR}/common/cmake/esp-idf-lib.cmake)
9-
if(EXISTS ${ESP_IDF_LIB_CMAKE})
10-
include(${ESP_IDF_LIB_CMAKE})
11-
else()
12-
message(WARNING "${ESP_IDF_LIB_CMAKE} not found")
13-
endif()
11+
include(eil_ci)

common

Lines changed: 0 additions & 1 deletion
This file was deleted.

component.mk

Lines changed: 0 additions & 2 deletions
This file was deleted.

eil-cmake-utils

Submodule eil-cmake-utils added at c91055e

examples/default/Makefile

Lines changed: 0 additions & 6 deletions
This file was deleted.

examples/default/README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@
77

88
## Wiring
99

10-
Connect an LED with an appropriate register to P10.
10+
Connect an LED with an appropriate current-limiting resistor to pin P10 of the TCA6424A.
11+
Connect buttons between pins P01, P02, and P03 of the TCA9564A and ground.
12+
Connect the INT pin of the TCA9564A to a selected GPIO of the ESP32.
1113

12-
Connect a switch that toggle its voltage HIGH or LOW to INT GPIO. The INT GPIO
13-
can be set in `menuconfig`. See the defaults in `Kconfig.projbuild`.
14+
The GPIO for connecting INT can be chosen in `menuconfig`.
15+
See the default settings in `Kconfig.projbuild`.

examples/default/main/component.mk

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)