-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ESP32: use esp-idf api to control led (#87)
- Loading branch information
1 parent
c709871
commit 075d120
Showing
19 changed files
with
664 additions
and
330 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,13 @@ | ||
# this CMakeLists.txt file is needed to include JLed in raspi pico projects | ||
add_library (JLed src/jled_base.cpp) | ||
target_include_directories (JLed PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/src) | ||
if(IDF_VER) # ESP-IDF component (ESP32) | ||
|
||
idf_component_register( | ||
SRCS "src/jled_base.cpp" "src/esp32_hal.cpp" | ||
INCLUDE_DIRS "src") | ||
|
||
idf_build_set_property(COMPILE_OPTIONS "-DESP32" APPEND) | ||
set_target_properties(${TARGET} PROPERTIES LINKER_LANGUAGE CXX) | ||
|
||
else() # Raspberry Pi Pico | ||
add_library (JLed src/jled_base.cpp) | ||
target_include_directories (JLed PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/src) | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"name": "JLed", | ||
"version": "4.9.0", | ||
"description": "An embedded library to control LEDs", | ||
"license": "MIT", | ||
"frameworks": ["espidf", "arduino", "mbed"], | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/jandelgado/jled" | ||
}, | ||
"authors": { | ||
"name": "Jan Delgado", | ||
"email": "jdelgado[at]gmx.net", | ||
"maintainer": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.