import esp-idf components:
import the components is easy: git clone , mkdir <proj_dir>/components, and copy into <proj_dir>/components
The git repos and commands that I used for this testing:
git clone https://github.com/natanaeljr/esp32-I2Cbus.git I2Cbus git clone https://github.com/natanaeljr/esp32-MPU-driver.git MPUdriver mkdir -p <proj_path>/components mv I2Cbus <proj_path>/components mv MPUdriver <proj_path>/components
for more, refer: https://github.com/natanaeljr/esp32-MPU-driver
Do
sdkconfig
for the right chip and protocal for the imported componentif the
hello_world_main.c
is renamed, rename it in<proj_dir>/main/CMakeLists.txt