a
Dependents: FM_integration_off
Fork of MPL3115A2 by
Diff: Temperature.h
- Revision:
- 4:79cff85db78c
- Parent:
- 3:7c7c1ea6fc33
diff -r 7c7c1ea6fc33 -r 79cff85db78c Temperature.h --- a/Temperature.h Wed Apr 02 12:59:44 2014 +0000 +++ b/Temperature.h Sat Sep 09 23:16:02 2017 +0000 @@ -28,7 +28,7 @@ enum unitsType { CELSIUS, FAHRENHEIT, KELVIN }; Temperature(); - Temperature(float a, unitsType units = FAHRENHEIT); + Temperature(float a, unitsType units = CELSIUS); Temperature(const char* compressed); Temperature(const char msb, const char lsb); @@ -37,15 +37,15 @@ //! Same as calling temperature with FAHRENHEIT as the parameter. operator float(void) { return _temperature; } - float temperature(unitsType units = FAHRENHEIT); + float temperature(unitsType units = CELSIUS); //! Call to decompress the sensor data after an I2C read. void setTemperature(); void setTemperature(const char* compressed); void setTemperature(const char msb, const char lsb); - void setTemperature(float a, unitsType units = FAHRENHEIT); + void setTemperature(float a, unitsType units = CELSIUS); //! Returns the temperature as a string in the units specified, defaulting to FAHRENHEIT if none specified. - const char* print(unitsType units = FAHRENHEIT); + const char* print(unitsType units = CELSIUS); private: float _temperature;