kopia lustrzana https://github.com/jgromes/RadioLib
![]() ESP-IDF allows projects to specify a sdkconfig.defaults values which contain preset values for configuration options of relevance to the project. This allows ESP-IDF to use those presets while supplying default values for all other configuration options, when generting the final sdkconfig file. Changes: - Ran `idf.py save-defconfig` to find non-default value configs. Saved relevant ones to `sdkconfig.defaults` - Removed `sdkconfig` file - Added `sdkconfig` to `.gitignore` as ESP-IDF will generate a `sdkconfig` based on `sdkconfig.defaults` when building. |
||
---|---|---|
.. | ||
main | ||
.gitignore | ||
CMakeLists.txt | ||
README.md | ||
sdkconfig.defaults |
README.md
RadioLib ESP-IDF example
This example shows how to use RadioLib as ESP-IDF component, without the Arduino framework. To run in ESP-IDF (or on any other platform), RadioLib includes an internal hardware abstraction layer (HAL). This software layer takes care of basic interaction with the hardware, such as performing SPI transaction or GPIO operations. To run on your chosen ESP microcontroller, you will likely have to customize the example HAL for your specific ESP type.
Structure of the example
main/CMakeLists.txt
- IDF component CMake filemain/EspHal.h
- RadioLib HAL example implementationmain/idf_component.yml
- declaration of the RadioLib dependency for this examplemain/main.cpp
- the example source codesdkconfig.defaults
- List of preset configuration option values for ESP-IDF. All other options use default values provided by ESP-IDF.