DS1820 support (forked repo)
Fork of DS1820 by
Diff: DS1820.h
- Revision:
- 1:980691eb0534
- Parent:
- 0:245af9360f0d
diff -r 245af9360f0d -r 980691eb0534 DS1820.h --- a/DS1820.h Tue Feb 28 07:42:07 2012 +0000 +++ b/DS1820.h Thu Mar 17 12:22:16 2016 +0000 @@ -70,7 +70,7 @@ * probe[0]->convert_temperature(DS1820::all_devices); * lcd.cls(); * for (i=0; i<devices_found; i++) { - * lcd.printf("%3.1f ",probe[i]->temperature('f')); + * lcd.printf("%3.1f ",probe[i]->temperature()); * } * } * } @@ -170,10 +170,9 @@ * that precision. It does seem to give a smooth reading to the * tenth of a degree. * - * @param scale, may be either 'c' or 'f' * @returns temperature for that scale */ - float temperature(char scale='c'); + float temperature(); /** This function calculates the ROM checksum and compares it to the * CRC value stored in ROM[7]. @@ -233,7 +232,7 @@ private: bool _parasite_power; - char CRC_byte (char CRC, char byte ); + char CRC_byte (char aCRC, char aByte ); bool onewire_reset(); void match_ROM(); void skip_ROM();