DS1820 support (forked repo)

Dependents:   HaTemp

Fork of DS1820 by HM Yoong

Revision:
1:980691eb0534
Parent:
0:245af9360f0d
--- 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();