cansat

Dependencies:   DHT SCP1000 mbed

total_project.cpp

Committer:
mohamedgamal
Date:
2015-08-02
Revision:
0:0c6be6af3d6d

File content as of revision 0:0c6be6af3d6d:

#include "mbed.h"
#include "xbee.h"
#include "math.h" 
#include "SCP1000.h"
#include "DHT.h"
SCP1000 scp1000(p5,p6,p7,p8); 
Ticker myticker; 
Ticker Send_data; 
DHT sensor(p23,SEN11301P);
int main()
{  
 
float temp; 
int press;  
int err; 
   xbeeInit(9600);
    temp=scp1000.readTemperature(); 
    press=scp1000.readPressure();  
    err = sensor.readData();
      
}