Hello, I am trying to initialize I2C, but getting continuously high signal on both SDA and SCL pins . Can anyone suggest what can be the issue?
#include "stm8s.h"#define I2C_PORT (GPIOB)#define SDA_pin (GPIO_PIN_5)#define SCL_pin (GPIO_PIN_4)#define SLAVE_ADDRESS 0x60#define I2C_OWN_ADDRESS 0x00static void CLK_Config(void);void I2C_init(void);void I2C_Write(uint8_t I2C_Slave_Address,ui...