Added component.mk and modified cmake

This commit is contained in:
myles-parfeniuk 2023-11-14 14:04:01 -08:00
parent b8857cf8ee
commit 479d607e14
3 changed files with 5 additions and 3 deletions

View File

@ -1,3 +1,3 @@
idf_component_register(SRC_DIRS "." idf_component_register(SRCS BNO08x.cpp
INCLUDE_DIRS "." INCLUDE_DIRS .
REQUIRES driver esp_timer) REQUIRES driver esp_timer)

View File

@ -65,7 +65,7 @@ extern "C" void app_main(void)
/* /*
bno08x_config_t imu_config; //create config struct 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 imu_config.io_miso = GPIO_NUM_X; //assign pin
//etc... //etc...
BNO08x imu(imu_config); //pass config to BNO08x constructor BNO08x imu(imu_config); //pass config to BNO08x constructor

2
component.mk Normal file
View File

@ -0,0 +1,2 @@
COMPONENT_ADD_INCLUDEDIRS = .
COMPONENT_DEPENDS = driver esp_timer