Stm32f103 i2c example code. SPI stands for Serial Peripheral Interface.