cansat

Dependencies:   DHT SCP1000 mbed

Committer:
mohamedgamal
Date:
Sun Aug 02 08:43:04 2015 +0000
Revision:
0:0c6be6af3d6d
cansat

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mohamedgamal 0:0c6be6af3d6d 1 #include "mbed.h"
mohamedgamal 0:0c6be6af3d6d 2 #include "xbee.h"
mohamedgamal 0:0c6be6af3d6d 3 #include "math.h"
mohamedgamal 0:0c6be6af3d6d 4 #include "SCP1000.h"
mohamedgamal 0:0c6be6af3d6d 5 #include "DHT.h"
mohamedgamal 0:0c6be6af3d6d 6 SCP1000 scp1000(p5,p6,p7,p8);
mohamedgamal 0:0c6be6af3d6d 7 Ticker myticker;
mohamedgamal 0:0c6be6af3d6d 8 Ticker Send_data;
mohamedgamal 0:0c6be6af3d6d 9 DHT sensor(p23,SEN11301P);
mohamedgamal 0:0c6be6af3d6d 10 int main()
mohamedgamal 0:0c6be6af3d6d 11 {
mohamedgamal 0:0c6be6af3d6d 12
mohamedgamal 0:0c6be6af3d6d 13 float temp;
mohamedgamal 0:0c6be6af3d6d 14 int press;
mohamedgamal 0:0c6be6af3d6d 15 int err;
mohamedgamal 0:0c6be6af3d6d 16 xbeeInit(9600);
mohamedgamal 0:0c6be6af3d6d 17 temp=scp1000.readTemperature();
mohamedgamal 0:0c6be6af3d6d 18 press=scp1000.readPressure();
mohamedgamal 0:0c6be6af3d6d 19 err = sensor.readData();
mohamedgamal 0:0c6be6af3d6d 20
mohamedgamal 0:0c6be6af3d6d 21 }