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

Dependencies:   RF24 USBDevice mbed

Committer:
pro100kot14
Date:
Wed Oct 28 20:50:56 2015 +0000
Revision:
4:7cd67d988145
Parent:
Photoresistor.h@2:ad2653bcf93f
Child:
6:db4538895ae7
Reorganization of the structure of files

Who changed what in which revision?

UserRevisionLine numberNew contents of line
pro100kot14 2:ad2653bcf93f 1 #ifndef PHOTORESISTOR_H
pro100kot14 2:ad2653bcf93f 2 #define PHOTORESISTOR_H
pro100kot14 2:ad2653bcf93f 3
pro100kot14 2:ad2653bcf93f 4 #include "mbed.h"
pro100kot14 2:ad2653bcf93f 5 #include "Illumination.h"
pro100kot14 2:ad2653bcf93f 6 /**
pro100kot14 2:ad2653bcf93f 7 * Reads the resistance of photoresistor and associates it with
pro100kot14 2:ad2653bcf93f 8 * the light level of illumination provided by enum Illumination.
pro100kot14 2:ad2653bcf93f 9 */
pro100kot14 2:ad2653bcf93f 10 class Photoresistor{
pro100kot14 2:ad2653bcf93f 11 public:
pro100kot14 2:ad2653bcf93f 12 /**
pro100kot14 2:ad2653bcf93f 13 * Constructor
pro100kot14 2:ad2653bcf93f 14 *
pro100kot14 2:ad2653bcf93f 15 * @param inputChanel The analog input is connected to the photoresistor
pro100kot14 2:ad2653bcf93f 16 */
pro100kot14 2:ad2653bcf93f 17 Photoresistor(AnalogIn inputChanel);
pro100kot14 2:ad2653bcf93f 18
pro100kot14 2:ad2653bcf93f 19 /**
pro100kot14 2:ad2653bcf93f 20 * Level of illumination provided by enum Illumination
pro100kot14 2:ad2653bcf93f 21 *
pro100kot14 2:ad2653bcf93f 22 * @returns Level of illumination
pro100kot14 2:ad2653bcf93f 23 */
pro100kot14 2:ad2653bcf93f 24 Illumination getIllumination();
pro100kot14 2:ad2653bcf93f 25
pro100kot14 2:ad2653bcf93f 26 private:
pro100kot14 2:ad2653bcf93f 27 AnalogIn input;
pro100kot14 2:ad2653bcf93f 28 };
pro100kot14 2:ad2653bcf93f 29
pro100kot14 2:ad2653bcf93f 30 #endif