Sensirion / embedded-i2c-scd4x

Embedded driver for the SCD4x sensor family.
BSD 3-Clause "New" or "Revised" License
26 stars 20 forks source link

How to use with "embedded-sps" library #6

Closed ChangWan-Kim closed 1 year ago

ChangWan-Kim commented 1 year ago

hello.

I'm currently developing a board that uses sps30 and scd41 together.

I downloaded the embedded library provided by Sensirion.

When I open the two libraries, I see a file with the same name, but with different contents.

Do I have to manually fix the library conflicts?

Rol-la commented 1 year ago

Hi Kim,

The driver repositories are structured in a way, that each driver repository is self contained and can be built by its own. This implies that some content between two driver repos is redundant. This is especially true for the framework code (all the files that start with ). As our drivers and the framework evolve over time it is the case that not all drivers work with any other version of the corresponding file. When you want to use several drivers in one project you will need manually merge the contents of the two repositories:

best regards, Rolf

ChangWan-Kim commented 1 year ago

Thank you for answer.

as you described

Fixed by loading "sensirion_*" files from scd41's repository.

Changed some used function names in sps30.c file.

Examples of scd41 and sps30 worked well at the same time.

thank you