From 68c2ee2385607882b2aea4c48b9bb897abbfdbf2 Mon Sep 17 00:00:00 2001 From: IOsetting Date: Tue, 24 Jan 2023 03:14:20 +0800 Subject: [PATCH] docs: tested with pf0&pf1 on py32f002a --- Examples/LL/I2C/SSD1306_128x64OLED/main.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Examples/LL/I2C/SSD1306_128x64OLED/main.c b/Examples/LL/I2C/SSD1306_128x64OLED/main.c index 4089de6..8203abc 100644 --- a/Examples/LL/I2C/SSD1306_128x64OLED/main.c +++ b/Examples/LL/I2C/SSD1306_128x64OLED/main.c @@ -130,6 +130,12 @@ static void APP_I2cMasterConfig(void) LL_IOP_GRP1_EnableClock(LL_IOP_GRP1_PERIPH_GPIOA); LL_APB1_GRP1_EnableClock(LL_APB1_GRP1_PERIPH_I2C1); + /** + * SCL: PF1 & AF_12, PA9 & AF_6 + * SDA: PF0 & AF_12, PA10 & AF_6 + * + * Change pins to PF1 / PF0 for parts have no PA9 / PA10 + */ // PA9 SCL GPIO_InitStruct.Pin = LL_GPIO_PIN_9; GPIO_InitStruct.Mode = LL_GPIO_MODE_ALTERNATE;