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.
capteur.h
00001 #ifndef CAPTEUR_H 00002 #define CAPTEUR_H 00003 00004 #include "mbed.h" 00005 #define EZO_DO (0x61<<1) //97 00006 #define EZO_pH (0x63<<1)//99 00007 #define EZO_EC (0x64<<1)//100 00008 #define EZO_RTD (0x66<<1)//102 00009 00010 00011 class capteur 00012 { 00013 public: 00014 public: 00015 capteur(PinName sda, PinName scl); 00016 void code (int code); 00017 void affich_DO (void); 00018 void affich_EC (void); 00019 void affich_pH (void); 00020 void affich_temp (void); 00021 char* return_temp (void); 00022 char* return_DO (void); 00023 char* return_EC (void); 00024 char* return_pH (void); 00025 void calibrate_temp(const char* ); 00026 void calibrate_EC(void); 00027 void calibrate_pH(void); 00028 void calibrate_DO(void); 00029 private: 00030 I2C i2c; 00031 char res[30]; 00032 char res_ph[400]; 00033 char res_ec[400]; 00034 char res_do[30]; 00035 }; 00036 #endif //CAPTEUR_H
Generated on Tue Jul 12 2022 19:00:53 by
