Merge pull request #6912 from flywoo/master
modify the scl pin -PB8 flywoo405 target
This commit is contained in:
commit
d193783e66
|
@ -27,7 +27,7 @@ This board use the STM32F405RGT6 microcontroller and have the following features
|
||||||
| Value | Identifier | function | pin | Notes |
|
| Value | Identifier | function | pin | Notes |
|
||||||
| ----- | ------------ | ---------| -------| ------------------------------------------------------------------------------------- |
|
| ----- | ------------ | ---------| -------| ------------------------------------------------------------------------------------- |
|
||||||
| 1 | I2C1 | SDA | PB9 | with GPS outlet
|
| 1 | I2C1 | SDA | PB9 | with GPS outlet
|
||||||
| 2 | I2C1 | SCL | PB6 | with GPS outlet
|
| 2 | I2C1 | SCL | PB8 | with GPS outlet
|
||||||
|
|
||||||
|
|
||||||
### Buzzer/LED output
|
### Buzzer/LED output
|
||||||
|
|
|
@ -88,12 +88,7 @@
|
||||||
#define USE_I2C_DEVICE_1
|
#define USE_I2C_DEVICE_1
|
||||||
#define I2C_DEVICE (I2CDEV_1)
|
#define I2C_DEVICE (I2CDEV_1)
|
||||||
|
|
||||||
#if defined(FLYWOOF405)
|
|
||||||
#define I2C1_SCL PB6
|
|
||||||
#else
|
|
||||||
#define I2C1_SCL PB8 // SCL pad
|
#define I2C1_SCL PB8 // SCL pad
|
||||||
#endif
|
|
||||||
|
|
||||||
#define I2C1_SDA PB9 // SDA pad
|
#define I2C1_SDA PB9 // SDA pad
|
||||||
#define BARO_I2C_INSTANCE I2C_DEVICE
|
#define BARO_I2C_INSTANCE I2C_DEVICE
|
||||||
#define MAG_I2C_INSTANCE I2C_DEVICE
|
#define MAG_I2C_INSTANCE I2C_DEVICE
|
||||||
|
|
Loading…
Reference in New Issue