From 560cdd714ce1069314dab3c82fefaef364d0054a Mon Sep 17 00:00:00 2001 From: nerdCopter <56646290+nerdCopter@users.noreply.github.com> Date: Mon, 8 Jul 2024 13:02:16 -0500 Subject: [PATCH] [target] FLYCOLORF7 add Baro bmp280 (#1072) --- src/main/target/FLYCOLORF7/target.h | 3 +++ src/main/target/FLYCOLORF7/target.mk | 1 + 2 files changed, 4 insertions(+) diff --git a/src/main/target/FLYCOLORF7/target.h b/src/main/target/FLYCOLORF7/target.h index 7c27d4bf42..38b348b69f 100644 --- a/src/main/target/FLYCOLORF7/target.h +++ b/src/main/target/FLYCOLORF7/target.h @@ -31,6 +31,8 @@ #define USE_GYRO_SPI_MPU6000 #define USE_FLASH #define USE_FLASH_W25Q128FV +#define USE_BARO +#define USE_BARO_BMP280 #define USE_MAX7456 #define USE_VCP @@ -105,6 +107,7 @@ #define USE_I2C_DEVICE_1 #define I2C_DEVICE_1 (I2CDEV_1) #define MAG_I2C_INSTANCE (I2CDEV_1) +#define BARO_I2C_INSTANCE (I2CDEV_1) #define I2C1_SCL PB6 #define I2C1_SDA PB7 diff --git a/src/main/target/FLYCOLORF7/target.mk b/src/main/target/FLYCOLORF7/target.mk index de71ac0a2e..b4531fc3fe 100644 --- a/src/main/target/FLYCOLORF7/target.mk +++ b/src/main/target/FLYCOLORF7/target.mk @@ -3,6 +3,7 @@ FEATURES += VCP ONBOARDFLASH TARGET_SRC = \ drivers/accgyro/accgyro_spi_mpu6000.c \ +drivers/barometer/barometer_bmp280.c \ $(addprefix drivers/compass/,$(notdir $(wildcard $(SRC_DIR)/drivers/compass/*.c))) \ drivers/light_led.h \ drivers/light_ws2811strip.c \