Skip to content

Commit 7ce4518

Browse files
committed
feat(repo): support micropython
1 parent a227c60 commit 7ce4518

File tree

3 files changed

+24
-1
lines changed

3 files changed

+24
-1
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# ChangeLog
22

3+
## v1.0.0 - 2024-12-06
4+
5+
### Enhancements:
6+
7+
* feat(repo): refactor with esp-lib-utils
8+
* feat(repo): support micropython
9+
310
## v0.1.0 - 2024-11-05
411

512
### Enhancements:

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ category=Other
88
architectures=esp32
99
url=https://github.com/esp-arduino-libs/ESP32_IO_Expander
1010
includes=esp_io_expander.hpp
11-
depends=esp-lib-utils (>=0.1.0 && < 0.2.0)
11+
depends=esp-lib-utils (>=0.1.0 && <0.2.0)

micropython.cmake

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# This file is to be given as "make USER_C_MODULES=..." when building Micropython port
2+
3+
add_library(usermod_esp_io_expander INTERFACE)
4+
5+
# Set the source directorya and find all source files.
6+
set(SRC_DIR ${CMAKE_CURRENT_LIST_DIR}/src)
7+
file(GLOB_RECURSE SRCS ${SRC_DIR}/*.c)
8+
9+
# Add our source files to the library.
10+
target_sources(usermod_esp_io_expander INTERFACE ${SRCS})
11+
12+
# Add the current directory as an include directory.
13+
target_include_directories(usermod_esp_io_expander INTERFACE ${SRC_DIR})
14+
15+
# Link our INTERFACE library to the usermod target.
16+
target_link_libraries(usermod INTERFACE usermod_esp_io_expander)

0 commit comments

Comments
 (0)