STM32 programming I2C and MS5611 barometer example in Keil

I2C (Inter-Integrated Circuit) on STM 32 boards is not simple to understand. It took me 7 or 8 days until got it working properly. For now, it does not uses interrupts and/or DMA, but that will come soon in another video. The problem is with documentation and poor explanation without examples how and why. In interrupt mode, it is different than in 'direct mode'. Direct mode requires some tricky byte manipulation near end of receiving data from some device, and it is different if we want to receive one, two or more bytes. For this reason in the documentation, there are three variation for 'Method 2' (no interrupts), N=1 (receiving single byte), N=2 (receiving two bytes), and N greater than 2 (receiving more than two bytes). In this video, I am using example of interfacing MS5611 precision Barometer. I already have similar example for Altimeter on my website http://wildlab.org with Aruino (transmitter with Attiny85 and receiver with Atmega328p). This time only measuring part for temperature and pressure, and sending data over USART1 to the PC using HTerm, excellent terminal. This time I do not calculating altitude - that will also come later in some video. No need to pause video and catch codes, everything is already on my web page: http://wp.me/p7jxwp-nD ~~~~~~~~~~~~~-~~~~~~~~~~~~~~