bah oui

Dependencies:   OneWire

Dependents:   STM32_Button_Interrupt_dla_taty

Revision:
8:8dfdd1603e4d
Parent:
7:4403a206e78a
Child:
11:9be3e73c01f1
Child:
13:b593a82ce790
--- a/DS1820.h	Thu Mar 26 20:57:59 2015 +0000
+++ b/DS1820.h	Fri Mar 27 12:34:16 2015 +0000
@@ -6,16 +6,17 @@
 class   DS1820
 {
     OneWire oneWire;
-    uint8_t type_s;
+    bool    present;    
+    bool    model_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);
+    bool   isPresent();
     void   setResolution(uint8_t res);
     void   startConversion(void);
     float  read(void);