1
0
forked from me/IronOS

Update Setup.cpp

This commit is contained in:
Ben V. Brown
2023-07-21 17:50:01 +10:00
parent 3a725aa3c1
commit 26bb81ce58

View File

@@ -280,7 +280,7 @@ static void MX_ADC2_Init(void) {
/* I2C1 init function */ /* I2C1 init function */
static void MX_I2C1_Init(void) { static void MX_I2C1_Init(void) {
hi2c1.Instance = I2C1; hi2c1.Instance = I2C1;
hi2c1.Init.ClockSpeed = 75000; hi2c1.Init.ClockSpeed = 150000;
// OLED doesnt handle >100k when its asleep (off). // OLED doesnt handle >100k when its asleep (off).
hi2c1.Init.DutyCycle = I2C_DUTYCYCLE_2; hi2c1.Init.DutyCycle = I2C_DUTYCYCLE_2;
hi2c1.Init.OwnAddress1 = 0; hi2c1.Init.OwnAddress1 = 0;