2022-09-16 10:55 AM
I have a stm32f3discovery board and I want to start playing with the LSM303DLHC MEMS sensor.
I seem to have found the original example code on github.
So I guess I need to add both the header and c file to my project. I'm not sure how to go about this. Also, what is this procedure called? Am I "adding a library"? Or is it called a driver?
Solved! Go to Solution.
2022-09-16 10:59 AM
A library is a precompiled file, typically having several object files in it, so a .A or .LIB
In tools like Keil / IAR you "Add Existing File(s)" to the project node, where you'd add the C file.
The .H file would be found via "Include Paths"
2022-09-16 10:59 AM
A library is a precompiled file, typically having several object files in it, so a .A or .LIB
In tools like Keil / IAR you "Add Existing File(s)" to the project node, where you'd add the C file.
The .H file would be found via "Include Paths"