Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
RG100.cpp
- Committer:
- Station_Meteo_Laos
- Date:
- 2019-06-29
- Revision:
- 1:b6d17e57602b
- Parent:
- 0:2971a232b9b1
File content as of revision 1:b6d17e57602b:
#include "RG100.h" #include "mbed.h" //Il faut faire un étalonage dés que l'on change d'environement //Au Laos, on prendre 1176.5 comme valeur pour coeff_etalon //Si un étalonage n'est pas possible, il peut-être aproximer à 1000 RG100::RG100(PinName analog_pin, float coeff_etalon):analog(analog_pin) { coef_etalon = coeff_etalon; } // Capteur à irradiance solaire Solems RG100 bool RG100::read( ) { irradiance = float(coef_etalon)*analog.read(); return true; }