Exemple #1
0
 #include "gps.h"
 #include "ph.h"
 #include "defines.h"
 #include "serial_out.h"
 #include "sd_out.h"
 #include "capteur_analog.h"
 
 GPS gps = GPS(ID_CAPT_GPS);
 CapteurAnalog press = CapteurAnalog(ID_CAPT_PRESS, PIN_PRESS);
 CapteurAnalog pressext = CapteurAnalog(ID_CAPT_PRESSEXT, PIN_PRESSEXT);
 CapteurAnalog temp = CapteurAnalog(ID_CAPT_TEMP, PIN_TEMP);
 CapteurAnalog conduct = CapteurAnalog(ID_CAPT_CONDUCT, PIN_CONDUCT);
 CapteurAnalog chamallow = CapteurAnalog(ID_CAPT_CHAMALLOW, PIN_CHAMALLOW);
 CapteurAnalog co2 = CapteurAnalog(ID_CAPT_CO2, PIN_CO2);
 pH ph = pH(ID_CAPT_PH);
 SerialOut so = SerialOut();
 SdOut sd = SdOut();
 CapteurAnalog pile (ID_CAPT_PILE, PIN_PILE);
 unsigned long int timer;
 bool refreshed;
 
void setup() {
   pinMode((byte)10, OUTPUT);
   pinMode((byte)13, OUTPUT);
   so.init();
   sd.init();
   
   press.init();
   pressext.init();
   gps.init();
   temp.init();
Exemple #2
0
/******************************************************************************
*                                                                             *
*   void SerialOutString(char *str)                                           *
*                                                                             *
*******************************************************************************
*
*   Sends a complete string to a serial port
*
******************************************************************************/
void SerialOutString(char *str)
{
    while( *str )
        SerialOut(*str++);
}