Mario Simaremare / Mbed 2 deprecated g3_waterplay

Dependencies:   mbed

Revision:
1:f448c12d2c5b
Parent:
0:ad9362f18797
Child:
2:ed17e258da0d
--- a/SalinitySensor.h	Thu Jun 02 17:53:02 2016 +0000
+++ b/SalinitySensor.h	Tue Jun 07 10:21:07 2016 +0000
@@ -11,6 +11,7 @@
 {
 public:
     SalinitySensor(
+        mbed::Serial &serial,
         PinName pin,
         double const_voltage,
         double const_converter,
@@ -21,11 +22,14 @@
     double getSalinity();
 
 private:
+    Serial &_serial;
     AnalogIn _analog_in;
     double _const_voltage;
     double _const_converter;
     double _const_multiplier;
+    double _reading;
     double _voltage;
+    double _salinity;
 };
 
 #endif
\ No newline at end of file