Сбор информации о погодных условиях
Dependencies: RF24 USBDevice mbed
Diff: Sensors/ThermometerTmp36.h
- Revision:
- 6:db4538895ae7
- Parent:
- 4:7cd67d988145
--- a/Sensors/ThermometerTmp36.h Wed Oct 28 20:52:12 2015 +0000 +++ b/Sensors/ThermometerTmp36.h Sat Dec 05 16:57:30 2015 +0000 @@ -22,8 +22,28 @@ */ double getTemperature(); + /** + * The temperature in degrees Celsius, calculated based on a parameter. + * Сomfortably for testing. + * + * @param adcVal ADC value on the port to which the sensor is connected + * + * @returns Temperature + */ + static double getTemperatureByAdcValue(float adcVal); + private: AnalogIn input; }; +/** +* Tested the class ThermometerTmp36 +*/ +class ThermometerTmp36Test{ +public: + static bool adcValue_0_15_is_0_degree(); + static bool adcValue_0_196_is_15_degree(); + static bool adcValue_0_242_is_30_degree(); +}; + #endif \ No newline at end of file