free software 1-wire (DS18x20) library (AVR, ARM)?

BTW, is there any good 1-wire "master" interface library (as used, e. g., to communicate with the DS18B20 temperature sensors), which happens to be free software?

I'm aware of the Peter Dannegger & Martin Thomas work [1], yet neither in the code nor on the Web page can I find any permission whatsoever to reuse the code (or even to run it!)

I've also seen a number of such libraries for the Arduino platform (including [2, 3]), which happen to rely on C++ and the usual set of libraries, thus making me think that they may end up being a bit too heavyweight to use "in production."

TIA.

[1]
formatting link
[2]
formatting link
[3]
formatting link
--
FSF associate member #7257
Reply to
Ivan Shmakov
Loading thread data ...

formatting link

You are idiot. It takes about 15 minutes to DIY.

Reply to
Vladimir Vassilevsky

There is clearly something wrong with someone who feels the need to demean others for the slightest infraction of their "rules".

Will you get a life and stop being such a rude, condescending toad? You actually have something to contribute, but you pollute the very waters of these groups with your raw lack of respect for others.

--

Rick
Reply to
rickman

Rickman - prickman

Reply to
Vladimir Vassilevsky

Yes, you always cease to amaze me. You should hang out with the s.e.d crowd. I think you would fit right in. But then again, you don't seem the type to stand up for yourself. In s.e.d you would probably be eaten alive.

--

Rick
Reply to
rickman

I'm glad Vlad responded. That reminded me to respond to the OP...

There are any number of 1-wire libraries around. Just do a little searching and I'm sure you will find one. It is not really a 15 minute exercise but it is not so difficult to write one. The specs are not totally clear on how to implement in software. At one time they just plain didn't give the full range of timing info needed to properly spec the interface, but I think that has been fully rectified by now. You just need to set a small set of timing values to control the reading and writing of the bus. The other part is enumeration of the devices out there. Again, you need to read the protocol and make sure you understand how it works. All this will help even if you are just using someone else's library.

--

Rick
Reply to
rickman

Rickman,

Have you already built your long promised WWWB clock? No ? Is it to tough for you, lamer? Go and do it, pathetic windbag.

Reply to
Vladimir Vassilevsky

Yes, you are perfect for s.e.d.

--

Rick
Reply to
rickman

If you use the CodevisionAVR compiler, you get a 1-wire library . You pay for the compiler, but you get quite a lot of library code for free.

Anton Erasmus

Reply to
Anton Erasmus

Hi Ivan,

I tracked down Peter Dannegger on avrfreaks and he said "All my code on the forum can be used for free."

Martin Thomas was happy for his modifications to be used under a BSD licence.

So it should be possible to get permission to use the code if you need it.

Regards, Alex

Reply to
wainwright.alex

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.