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.
Sensor.h
00001 #define _COLOR_SENSOR_ 00002 #define _GND_SENSOR_ 00003 #define _DHT_SENSOR_ 00004 #include "DS1820.h" 00005 #include "DHT.h" 00006 #include "glibr.h" 00007 00008 00009 00010 extern float airTemperature; 00011 extern float airHumidity; 00012 extern unsigned short ambientLight, redLight, greenLight, blueLight; 00013 extern double gndTemperature; 00014 extern int gndHumidity; 00015 extern DS1820 gndTemperatureSensor; 00016 extern AnalogIn gndHumSensor; 00017 #ifdef _DHT_SENSOR_ 00018 #endif 00019 00020 #ifdef _COLOR_SENSOR_ 00021 extern glibr rgbSensor; // liaison de type I2C avec le module de mesure de lumière 00022 00023 void init_rgbSensor(); // initialise le capteur de lumière 00024 void getLightValues(unsigned short *ambientLight, unsigned short *redLight, unsigned short *greenLight, unsigned short *blueLight); // récupère les données du capteur de lumière 00025 #endif 00026 00027 #ifdef _GND_SENSOR_ 00028 00029 #define GND_TMP_SENSOR A0 00030 #define HUM_MAX 24500.0 00031 #define HUM_MIN 20600.0 00032 00033 void init_gndTmp(); //initialise le capteur de température du sol 00034 double getGndTemperature(); // retourne la valeur de la température du sol en °C 00035 int getGndHumidity(); 00036 #endif
Generated on Wed Aug 17 2022 05:29:14 by
 1.7.2