wang tang / watersenor_and_temp_code

Dependencies:   OneWire

Dependents:   IDW01M1-MQTT3 DS1820_IDW01M1 DS1820_IDW01M1_finish Dissolved_oxygen_sensor_online ... more

Fork of DS1820 by Zoltan Hudak

Files at this revision

API Documentation at this revision

Comitter:
hudakz
Date:
Thu Mar 26 20:57:59 2015 +0000
Parent:
6:518950e436be
Child:
8:8dfdd1603e4d
Commit message:
Sensor array sample added

Changed in this revision

DS1820.h Show annotated file Show diff for this revision Revisions of this file
--- a/DS1820.h	Thu Mar 26 17:36:56 2015 +0000
+++ b/DS1820.h	Thu Mar 26 20:57:59 2015 +0000
@@ -6,18 +6,18 @@
 class   DS1820
 {
     OneWire oneWire;
-    uint8_t present;
     uint8_t type_s;
     uint8_t data[12];
     uint8_t addr[8];
     float   toFloat(uint16_t word);
 public:
+    uint8_t present;
+
     DS1820(PinName pin);
     DS1820(char model, PinName pin);
     bool   begin(void);
     void   setResolution(uint8_t res);
     void   startConversion(void);
     float  read(void);
-
 };
 #endif /* DS1820_H_ */