Сбор информации о погодных условиях
Dependencies: RF24 USBDevice mbed
Sensors/Photoresistor.h
- Committer:
- pro100kot14
- Date:
- 2015-10-28
- Revision:
- 4:7cd67d988145
- Parent:
- Photoresistor.h@ 2:ad2653bcf93f
- Child:
- 6:db4538895ae7
File content as of revision 4:7cd67d988145:
#ifndef PHOTORESISTOR_H #define PHOTORESISTOR_H #include "mbed.h" #include "Illumination.h" /** * Reads the resistance of photoresistor and associates it with * the light level of illumination provided by enum Illumination. */ class Photoresistor{ public: /** * Constructor * * @param inputChanel The analog input is connected to the photoresistor */ Photoresistor(AnalogIn inputChanel); /** * Level of illumination provided by enum Illumination * * @returns Level of illumination */ Illumination getIllumination(); private: AnalogIn input; }; #endif