Lab4

Dependencies:   mbed HeptaBattery SDFileSystem HeptaCamera_GPS

main.cpp

Committer:
HEPTA
Date:
2019-08-19
Revision:
17:a1d046102f3b
Parent:
16:788e609bf0a3
Child:
18:8b600cd66ec5

File content as of revision 17:a1d046102f3b:

#include "mbed.h"
#include "HeptaBattery.h"
#include "SDFileSystem.h"
#include "HeptaCamera_GPS.h"

Serial pc(USBTX,USBRX);
HeptaBattery battery(p19,p26);
SDFileSystem sd(p5, p6, p7, p8, "sd");
HeptaCamera_GPS cam_gps(p13, p14,p25,p24);
DigitalOut EN(p26);
int main()
{
    cam_gps.gps_setting();
    pc.printf("GPS Raw Data Mode\r\n");
    while(1) pc.putc(cam_gps.getc());
}