Lit le port analogique du capteur RG100 et convertit la valeur lue en irradiance.
Diff: RG100.h
- Revision:
- 0:2971a232b9b1
- Child:
- 1:b6d17e57602b
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/RG100.h Mon May 20 09:23:00 2019 +0000 @@ -0,0 +1,19 @@ +#ifndef MBED_RG100_H +#define MBED_RG100_H + +#include "mbed.h" + +class RG100 +{ + public: + RG100(PinName analog_pin, float coeff_etalon); + bool read(); + + float irradiance; + + private: + AnalogIn analog; + float coef_etalon; +}; + +#endif \ No newline at end of file