mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 16:25:31 +03:00
Merge pull request #899 from AlienWiiBF/Sparky_I2C_fix
Sparky I2C initialization fix
This commit is contained in:
commit
c4e7dddc06
1 changed files with 3 additions and 0 deletions
|
@ -72,6 +72,9 @@
|
||||||
#define USE_I2C
|
#define USE_I2C
|
||||||
#define I2C_DEVICE (I2CDEV_2) // SDA (PA10/AF4), SCL (PA9/AF4)
|
#define I2C_DEVICE (I2CDEV_2) // SDA (PA10/AF4), SCL (PA9/AF4)
|
||||||
|
|
||||||
|
#define I2C2_SCL PA9
|
||||||
|
#define I2C2_SDA PA10
|
||||||
|
|
||||||
#define USE_ADC
|
#define USE_ADC
|
||||||
#define ADC_INSTANCE ADC2
|
#define ADC_INSTANCE ADC2
|
||||||
#define VBAT_ADC_PIN PA4
|
#define VBAT_ADC_PIN PA4
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue