From 17703625886b69311a06e4670d72451563d56cf9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?King=20K=C3=A9vin?= Date: Mon, 11 Jul 2022 12:24:54 +0200 Subject: [PATCH] =?UTF-8?q?set=20I=C2=B2C=20lines?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- softi2c_master.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/softi2c_master.c b/softi2c_master.c index 24d85f3..04b9d11 100644 --- a/softi2c_master.c +++ b/softi2c_master.c @@ -20,13 +20,13 @@ static uint16_t period = 0; // port for data line -#define SDA_PORT GPIO_PB +#define SDA_PORT GPIO_PD // pin for data line -#define SDA_PIN PB5 +#define SDA_PIN PD2 // port for clock line -#define SCL_PORT GPIO_PB +#define SCL_PORT GPIO_PD // pin for clock line -#define SCL_PIN PB4 +#define SCL_PIN PD3 // operation timeout (in half period) #define TIMEOUT 10U