simple wrapper for setting up gpio pins
- run
git submodule add git@github.com:wolffshots/esp32-gpio.git components/esp32-gpio
in your main project - configure project if needed
#include "gpio_wrapper.h"
should give you access to this component.
if the above steps don't work then you may need to run git submodule init components/esp32-gpio
and then git submodule update --remote --recursive
in your main project
the component esp32-gpio contains one source file in C language gpio_wrapper.c. the file is located in root folder.
esp-idf projects are build using cmake. the project build configuration is contained in CMakeLists.txt
files that provide set of directives and instructions describing the project's source files and targets (executable, library, or both).
below is short explanation of remaining files in the project folder.
├── include header file directory
│ └── gpio_wrapper.h the header file for this component
├── .gitignore describes what files and folders git should ignore
├── .travis.yml build rules for creating docs via doxygen
├── CMakeLists.txt base project cmake file (describes dependencies, include dir and src dir)
├── component.mk component make file
├── gpio_wrapper.c core src file of the component
├── Kconfig.projbuild kconfig description file to add build time vars
├── LICENSE.md MIT license file
└── README.md this file
for more information on structure and contents of esp-idf projects, please refer to Section Build System of the esp-idf programming guide.
automatically generated API documentation (doxygen) is available here.
the code in this project is licensed under the MIT license - see LICENSE for details.
git submodule update --remote --recursive
- updates the checked out modules to the most recent commit to their main branch
- add functions for general input (with different types of resistor)
- add functions for interrupts