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.
Fork of g3_waterplay by
Diff: TemperatureSensor.h
- Revision:
- 1:f448c12d2c5b
- Parent:
- 0:ad9362f18797
- Child:
- 2:ed17e258da0d
diff -r ad9362f18797 -r f448c12d2c5b TemperatureSensor.h --- a/TemperatureSensor.h Thu Jun 02 17:53:02 2016 +0000 +++ b/TemperatureSensor.h Tue Jun 07 10:21:07 2016 +0000 @@ -11,6 +11,7 @@ { public: TemperatureSensor( + mbed::Serial &serial, PinName pin, double const_voltage, double const_converter, @@ -23,13 +24,16 @@ double getTemperature(); private: + Serial &_serial; AnalogIn _analog_in; double _const_voltage; double _const_converter; double _variance; double _vin; double _resistance; + double _reading; double _voltage; + double _temperature; double _k0; double _k1; double _k2;