Skip to content

PRO TIP Block youtube.com at the DNS level — Pi-hole, NextDNS or your hosts file — but allow youtube-nocookie.com and i.ytimg.com. These tutorials keep playing; the rabbit hole does not.

Learning without distractions

STM32 Tutorial #26 – Creating a LIBRARY for a I2C sensor

2.6K views on YouTube

In this video we will finalise dealing with the BMP085 temperature and pressure sensor by creating a portable C library.

As usual, if you like this video please like and subscribe and I love to hear your thoughts and questions in the comments below.

STM32World Wiki: https://stm32world.com/wiki

Project Files: https://github.com/STM32World/stm32fun

#stm32 #tuturial #i2c #hal #stm32cubeide #stm32cubemx

00:00 Intro and recap
01:51 Creating the library directory and files
05:09 Explaining the header file
07:48 The “handler”
10:50 Implementing the library
15:15 Using the library in our main.c