Rinsen / OneWire

One Wire via DS2482-100 or DS2482-800 for Windows or Linux based Raspberry Pi IoT solutions
MIT License
33 stars 15 forks source link

Add Support For LightningProvider #12

Closed spacepost closed 5 years ago

spacepost commented 5 years ago

Currently, this project only works with the standard (inbox) drivers. A minor tweak is required to add support for the lightning drivers.

Rinsen commented 5 years ago

What is the biggest advantages with using Lightning?

I have not used that at all.

spacepost commented 5 years ago

Gpio performance is the primary benefit. I use the OneWire code in an aquarium controller to read temperature probes. The controller also controls the lighting and requires lightning drivers for PWM. I will submit a pull request for you with the adjustment. The change to add a constructor that accepts an i2c device would probably also work. I haven't tried it out yet.

Rinsen commented 5 years ago

In the latest release it's now possible to locate and send in whatever i2c device you want and handle the lifetime out side of my framework.

I have no plans currently to add in lightning drivers.

Rinsen commented 5 years ago

@spacepost

The latest beta version is now build on top of https://github.com/dotnet/iot i2c library instead of the previous. I am unsure what they use below the surface but It's at least not built on the same library as previously.