Сбор информации о погодных условиях

Dependencies:   RF24 USBDevice mbed

Revision:
6:db4538895ae7
Parent:
4:7cd67d988145
--- a/Sensors/Photoresistor.h	Wed Oct 28 20:52:12 2015 +0000
+++ b/Sensors/Photoresistor.h	Sat Dec 05 16:57:30 2015 +0000
@@ -22,9 +22,32 @@
     * @returns Level of illumination
     */
     Illumination getIllumination();
+
+    /**
+    * Level of illumination provided by enum Illumination.
+    * Сomfortably for testing.
+    *
+    * @param adcVal ADC value on the port to which the sensor is connected
+    *
+    * @returns Level of illumination
+    */
+    static Illumination getIlluminationByAdcValue(float adcVal);
     
 private:
     AnalogIn input;
 };
 
+/**
+* Tested the class Photoresistor
+*/
+class PhotoresistorTest{
+public:
+    static bool adcValue_0_isDark();
+    static bool adcValue_0_009_isDark();
+    static bool adcValue_0_34_isVeryCloudly();
+    static bool adcValue_0_93_isCloudly();
+    static bool adcValue_0_97_isClear();
+    static bool adcValue_0_98_isVerySunny();
+};
+
 #endif
\ No newline at end of file