10 years, 1 month ago.

So is this library not supported anymore?

The cpp file is empty. Looks like it was wiped out in the latest revision.

Question relating to:

Dallas / Maxim DS1820 1-Wire library. For communication with multiple DS1820 on a single 1-Wire bus. Also supports DS18S20 and DS18B20. DS1820, DS18B20, DS18S20

Hi, Do you happen to run ds1820 with these libraries? I can not. I have an error when compiling.

Error: Expected a type specifier static char CRC_byte (char CRC, char byte ); in "DS1820/DS1820.h", Line: 111, Col: 32 Error: Function returning function is not allowed in "DS1820/DS1820.h", Line: 111, Col: 32

posted by Freeman Oldman 29 Oct 2014

2 Answers

10 years, 1 month ago.

HI,

Looks like he deleted entire implementation. There are more libraries for this sensor. Please have a look at them, like https://developer.mbed.org/users/Sissors/code/DS1820/.

Regards,
0xc0170

Accepted Answer

The library Martin has mentioned is the one referred to on the component page http://developer.mbed.org/components/DS1820/

posted by Stephen Paulger 14 Oct 2014

Gotcha! Yeah, I think I tried them all last night and I still couldn't get DS18B20 to work :( Reset and confirmation pulses are fine, but then my logic analyzer (Saleae) says "invalid command[0]". Weird. All the libs do that. Board is Nordic nRF51822.

posted by Denis Masyukov 14 Oct 2014
10 years, 1 month ago.

I didn't delete the code. I've gone the arduino route, so haven't been on this site since I last posted the changes for the DS18S20. I'm sure I have a copy of the source code somewhere on my development system. I'll search and post the code or comment later today.

One revision older does still have code, something went wrong in your last commit.

That said he can also use the other code Martin posted (which might be mine :P), if it has some advantages, it can for example work in parasite power mode without an external mosfet. But for most setups your lib would also work fine obviously.

posted by Erik - 14 Oct 2014