使用硬件IIC实现回去数据,并且,间隔缩小到300ms

This commit is contained in:
2025-01-07 15:42:56 +08:00
parent 93b24cc454
commit e86f8b0dd3
8 changed files with 91 additions and 6 deletions

View File

@@ -12,7 +12,7 @@ set(VERSION "V${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}")
string(TIMESTAMP CURRENT_DATE "%Y-%m-%d")
# Options 1
set(OPT1 "")
set(OPT1 "_[HW_IIC]")
#set(OPT1 "_[SW_IIC]")
# Options 2
@@ -40,6 +40,7 @@ set(TARGET_C_SRC
${CMAKE_SOURCE_DIR}/src/i2c.c
${CMAKE_SOURCE_DIR}/src/fwdgt.c
${CMAKE_SOURCE_DIR}/src/rs485_protocol.c
${CMAKE_SOURCE_DIR}/src/gd60914.c
)
add_executable(${PROJECT_NAME} ${TARGET_C_SRC})