Lit le port analogique du capteur RG100 et convertit la valeur lue en irradiance.

RG100.h

Committer:
Station_Meteo_Laos
Date:
2019-05-20
Revision:
0:2971a232b9b1
Child:
1:b6d17e57602b

File content as of revision 0:2971a232b9b1:

#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