Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot override default OneWire library #8

Open
Kernolsie opened this issue Nov 9, 2020 · 2 comments
Open

Cannot override default OneWire library #8

Kernolsie opened this issue Nov 9, 2020 · 2 comments

Comments

@Kernolsie
Copy link

Kernolsie commented Nov 9, 2020

I am using Platformio on VisualStudioCode and I have downloaded your OneWire library to my lib folder in my project. I just can't seem to figure out how you link to your library? Should my program reference the normal OneWire library (as like in the DallasTemperature library) and then this repo's OneWire overrides the default one or how/where should I include it?

@A-n-d-y-K
Copy link

Hello @cybergibbons ,
is the question from @Kernolsie already answered? If yes I would be very thankful to get this answer as well.
I´m working also with Platform with Onewire Library paulstoffregen in use.

Currently I´m struggeling with as I2C Master DS2482-100 were a DS18B20 Temperatur Sensor is connected to and I wanted to know DS2482_OneWire is compatible with Onewire of paulstoffregen. If not how could both OneWire Libraries coexisitst in one PlatformIO Project.
Thanks in advance for your answer.

@gkostov
Copy link

gkostov commented Nov 14, 2023

Hey,

I had the same problem with the Arduino IDE and and I could not find a decent way to get around it. I guess it could be the same with PlatformIO as it seems DallasTemperature has been made to insist on working with a library named "OneWire" (assuming that is the standard one of paulstoffregen), so the only way to use DS2482_OneWire is to remove the standard one and place this one in the "libraries" folder. And it's going to work just fine - it's compatible (at least for all that I have used it for).
Then, if you want to use the software OneWire, remove the hardware version from "libraries" and put the standard one back.

Cheers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants