Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: SalinitySensor.h
- 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