Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .clangd
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
CompileFlags:
Remove: [-f*, -m*]
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ debug_custom.json
esp32.vsd
esp32s3.svd
debug.cfg
build/
managed_components/

SomfyController.ino.XIAO_ESP32S3.bin
SomfyController.ino.esp32c3.bin
Expand Down
36 changes: 36 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# For more information about build system see
# https://docs.espressif.com/projects/esp-idf/en/latest/api-guides/build-system.html
# The following five lines of boilerplate have to be in your project's
# CMakeLists in this exact order for cmake to work correctly
cmake_minimum_required(VERSION 3.16)
include(FetchContent)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)

idf_build_set_property(MINIMAL_BUILD ON)

FetchContent_Declare(
c1101_driver
GIT_REPOSITORY https://github.com/Viproz/SmartRC-CC1101-Driver-Lib.git
GIT_TAG 3664897200d1d695fbc78f7ae5d731cb2acff8be
)

FetchContent_MakeAvailable(c1101_driver)


FetchContent_Declare(
pubsubclient
GIT_REPOSITORY https://github.com/knolleary/pubsubclient.git
GIT_TAG 2d228f2f862a95846c65a8518c79f48dfc8f188c
)

FetchContent_MakeAvailable(pubsubclient)

FetchContent_Declare(
arduinoWebSockets
GIT_REPOSITORY https://github.com/Links2004/arduinoWebSockets.git
GIT_TAG 8d0744eb5e916ec646d83bd1ffed5f643aab04d8
)
FetchContent_MakeAvailable(arduinoWebSockets)


project(main)
Binary file removed SomfyController.ino.esp32.bin
Binary file not shown.
Binary file removed SomfyController.ino.esp32s3.bin
Binary file not shown.
Binary file removed SomfyController.littlefs.bin
Binary file not shown.
8 changes: 8 additions & 0 deletions components/SmartRC-CC1101-Driver-Lib/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@

idf_component_register(SRCS "${c1101_driver_SOURCE_DIR}/ELECHOUSE_CC1101_SRC_DRV.cpp"
INCLUDE_DIRS "${c1101_driver_SOURCE_DIR}/"
REQUIRES "arduino-esp32" # Library requires Arduino
)

target_compile_options(${COMPONENT_LIB} PRIVATE -Wno-misleading-indentation -Wno-maybe-uninitialized)

7 changes: 7 additions & 0 deletions components/arduinoWebSockets/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@

file(GLOB_RECURSE SRCS_CPP ${arduinowebsockets_SOURCE_DIR}/src/*.cpp)

idf_component_register(SRCS ${SRCS_CPP}
INCLUDE_DIRS "${arduinowebsockets_SOURCE_DIR}/src/"
REQUIRES "arduino-esp32" # Library requires Arduino
)
7 changes: 7 additions & 0 deletions components/pubsubclient/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@

idf_component_register(SRCS "${pubsubclient_SOURCE_DIR}/src/PubSubClient.cpp"
INCLUDE_DIRS "${pubsubclient_SOURCE_DIR}/src/."
REQUIRES "arduino-esp32" # Library requires Arduino
)


14 changes: 0 additions & 14 deletions debug.cfg

This file was deleted.

Loading