for textbook v4.4

Dependencies:   HEPTA_SENSOR mbed HEPTA_EPS HEPTA_COM HEPTA_CDH

main.cpp

Committer:
HeptaSatTraining2019
Date:
2019-08-21
Revision:
21:92c25e853b87
Parent:
13:a1fa75a002f6
Child:
24:3659e0c223c8

File content as of revision 21:92c25e853b87:

#include "mbed.h"
#include"HEPTA_EPS.h"
#include"HEPTA_CDH.h"
#include"HEPTA_SENSOR.h"
#include"HEPTA_COM.h"

Serial pc(USBTX,USBRX);
HEPTA_EPS eps(p16,p26);
HEPTA_CDH cdh(p5, p6, p7, p8, "sd");
/*HEPTA_SENSOR sensor(p13, p14,p25,p24, 
                    p28,p27,0xD0,0x18,
                    p17);*/
HEPTA_SENSOR sensor(p17, 
                    p28,p27,0xD0,0x18,
                    p13, p14,p25,p24);
HEPTA_COM com(p9,p10);

DigitalOut myled(LED1);

int main()
{
    myled = 1;
    wait(0.5);
    myled = 0;
    wait(0.5);
}