Search found 3 matches

by rootgordon
Wed Jan 06, 2021 11:52 am
Forum: ESP-IDF
Topic: Trying to make component folder work
Replies: 7
Views: 8170

Re: Trying to make component folder work


Check these files are exactly "CMakeLists.txt"


Thank you so much! The s in the end wasn't missing anywhere, but the L wasn't capitalized for sgtl5k. Now the compiler is finally complaining about my disastrous first-draft-functions in sgtl5k.c :lol: But that I can handle. I never would have ...
by rootgordon
Tue Jan 05, 2021 2:42 pm
Forum: ESP-IDF
Topic: Trying to make component folder work
Replies: 7
Views: 8170

Re: Trying to make component folder work

Ok, changed the include and modified CMakelist.txt in main:

# Edit following two lines to set component requirements (see docs)
set(COMPONENT_REQUIRES "sgtl5k" )
set(COMPONENT_PRIV_REQUIRES )

set(COMPONENT_SRCS "main.c")
set(COMPONENT_ADD_INCLUDEDIRS "")

register_component()
Now I get ...
by rootgordon
Tue Jan 05, 2021 10:16 am
Forum: ESP-IDF
Topic: Trying to make component folder work
Replies: 7
Views: 8170

Re: Trying to make component folder work

Hi everyone,

this is exactly what I'm having trouble with, so I'll post this here:

For context: I'm working on a project that includes the SGTL5000 . I'll have to communicate with that chip via i2c, which is why I'm writing some functions that I would like to be able to easily use in other ...

Go to advanced search