cancel
Showing results for 
Search instead for 
Did you mean: 

How to add the .C and .h files in the existing project ?

DYann.1
Senior II

Hello,

I would like to add .c and .h (sgtl5000.h and sgtl5000.cpp) in my project do you know how to do it ?

0693W00000Suc0rQAB.pngsgtl5000.cpp moreover, it might be necessary to convert the sgtl5000.cpp to .c probably ?

Thank you for your advices.

Regards.

4 REPLIES 4
Vmere.1
Senior

0693W00000SuccbQAB.png.c -> Source file

.h -> Header file

Vmere.1
Senior

Two possibilities: If you are experienced in C++ for couple of years, then you want to know if C language is easy or not!

Else,

You have to figure it out by yourself.

DYann.1
Senior II

Hi,

After having carried out several tests finally I could have files '.c' and '.h' in my project. I got compiler warnings but no errors.

Do you know what this function is for? Which microprocessor pin does it use ?

0693W00000SuiN3QAJ.pngI'm using a code I found on the internet and I don't understand everything. Thank you for your helps. I think it's the I2S bus but in my case I have an SAI1 equivalent

Regards

DYann.1
Senior II

Hi,

After looking in the prototypes I think I found an equivalent to my microprocessor with this code :

0693W00000SujE7QAJ.pngBut I have a doubt about PORT B, after my configuration below :

0693W00000SujGDQAZ.png I think the right PORT is probably B ? what do you think ?