How do I compile a .h file?
you could always try adding it to your compiler preprocessor defines?
eg: on gcc that would look like -DENABLE_MEMS
so right click on your project, go to “C/C++ Build”. “Settings”, “MCU GCC Compiler”, “Preprocessor”
that’s a pretty blunt instrument but at least you’ll be able to start doing something