Added component.mk and modified cmake
This commit is contained in:
parent
b8857cf8ee
commit
479d607e14
|
|
@ -1,3 +1,3 @@
|
|||
idf_component_register(SRC_DIRS "."
|
||||
INCLUDE_DIRS "."
|
||||
idf_component_register(SRCS BNO08x.cpp
|
||||
INCLUDE_DIRS .
|
||||
REQUIRES driver esp_timer)
|
||||
|
|
|
|||
|
|
@ -65,7 +65,7 @@ extern "C" void app_main(void)
|
|||
|
||||
/*
|
||||
bno08x_config_t imu_config; //create config struct
|
||||
imu_config.io_mos = GPIO_NUM_X; //assign pin
|
||||
imu_config.io_mosi = GPIO_NUM_X; //assign pin
|
||||
imu_config.io_miso = GPIO_NUM_X; //assign pin
|
||||
//etc...
|
||||
BNO08x imu(imu_config); //pass config to BNO08x constructor
|
||||
|
|
|
|||
|
|
@ -0,0 +1,2 @@
|
|||
COMPONENT_ADD_INCLUDEDIRS = .
|
||||
COMPONENT_DEPENDS = driver esp_timer
|
||||
Loading…
Reference in New Issue