init i2c class from STM32-Template