Skip to content

Commit 3bd1953

Browse files
liyouluocoderabbitai[bot]haslinghuis
authored
Add optional MAG definitions for BETAFPVF405 and BETAFPVF405_ELRS targets (#880)
* Add optional MAG definitions for BETAFPVF405 and BETAFPVF405_ELRS targets * Update configs/BETAFPVF405/config.h Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * Default MAG of BETAFPVF405_ELRS target to I2C1 * Update configs/BETAFPVF405/config.h Co-authored-by: Mark Haslinghuis <[email protected]> * Update configs/BETAFPVF405_ELRS/config.h Co-authored-by: Mark Haslinghuis <[email protected]> --------- Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> Co-authored-by: Mark Haslinghuis <[email protected]>
1 parent 5177b14 commit 3bd1953

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

configs/BETAFPVF405/config.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@
6060
#define UART4_RX_PIN PA1
6161
#define UART5_RX_PIN PD2
6262
#define UART6_RX_PIN PC7
63+
#define I2C1_SCL_PIN PB8
64+
#define I2C1_SDA_PIN PB9
65+
#define MAG_I2C_INSTANCE I2CDEV_1
6366
#define INVERTER_PIN_UART3 PC9
6467
#define INVERTER_PIN_UART6 PC8
6568
#define LED0_PIN PB5

configs/BETAFPVF405_ELRS/config.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@
5757
#define UART4_RX_PIN PA1
5858
#define UART5_RX_PIN PD2
5959
#define UART6_RX_PIN PC7
60+
#define I2C1_SCL_PIN PB8
61+
#define I2C1_SDA_PIN PB9
6062
#define INVERTER_PIN_UART3 PC9
6163
#define INVERTER_PIN_UART6 PC8
6264
#define LED0_PIN PB5
@@ -95,6 +97,7 @@
9597
#define ADC2_DMA_OPT 1
9698
#define ADC_INSTANCE ADC2
9799
#define BARO_SPI_INSTANCE SPI3
100+
#define MAG_I2C_INSTANCE I2CDEV_1
98101

99102
#define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH
100103
#define DEFAULT_DSHOT_BURST DSHOT_DMAR_OFF

0 commit comments

Comments
 (0)