Lab4

Dependencies:   HEPTA_SENSOR mbed HEPTA_EPS

Committer:
HeptaSatTraining2019
Date:
Wed Aug 21 11:07:11 2019 +0000
Revision:
21:92c25e853b87
Parent:
13:a1fa75a002f6
Child:
24:3659e0c223c8

        

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mbed_official 0:bdbd3d6fc5d5 1 #include "mbed.h"
HeptaSatTraining2019 21:92c25e853b87 2 #include"HEPTA_EPS.h"
HeptaSatTraining2019 21:92c25e853b87 3 #include"HEPTA_CDH.h"
HeptaSatTraining2019 21:92c25e853b87 4 #include"HEPTA_SENSOR.h"
HeptaSatTraining2019 21:92c25e853b87 5 #include"HEPTA_COM.h"
umeume 2:1c5cdb2c3e0f 6
umeume 2:1c5cdb2c3e0f 7 Serial pc(USBTX,USBRX);
HeptaSatTraining2019 21:92c25e853b87 8 HEPTA_EPS eps(p16,p26);
HeptaSatTraining2019 21:92c25e853b87 9 HEPTA_CDH cdh(p5, p6, p7, p8, "sd");
HeptaSatTraining2019 21:92c25e853b87 10 /*HEPTA_SENSOR sensor(p13, p14,p25,p24,
HeptaSatTraining2019 21:92c25e853b87 11 p28,p27,0xD0,0x18,
HeptaSatTraining2019 21:92c25e853b87 12 p17);*/
HeptaSatTraining2019 21:92c25e853b87 13 HEPTA_SENSOR sensor(p17,
HeptaSatTraining2019 21:92c25e853b87 14 p28,p27,0xD0,0x18,
HeptaSatTraining2019 21:92c25e853b87 15 p13, p14,p25,p24);
HeptaSatTraining2019 21:92c25e853b87 16 HEPTA_COM com(p9,p10);
umeume 2:1c5cdb2c3e0f 17
HEPTA 6:a7d481b9d962 18 DigitalOut myled(LED1);
umeume 5:c5ccb1b07e8f 19
umeume 2:1c5cdb2c3e0f 20 int main()
umeume 2:1c5cdb2c3e0f 21 {
HEPTA 6:a7d481b9d962 22 myled = 1;
umeume 5:c5ccb1b07e8f 23 wait(0.5);
HEPTA 6:a7d481b9d962 24 myled = 0;
umeume 5:c5ccb1b07e8f 25 wait(0.5);
umeume 2:1c5cdb2c3e0f 26 }