GPS and IMU reading works

Dependencies:   mbed Servo SDFileSystem

/media/uploads/taoqiuyang/img_2352.jpg

main.cpp

Committer:
taoqiuyang
Date:
2015-08-08
Revision:
0:f4d390c06705
Child:
1:e7245ffb4820

File content as of revision 0:f4d390c06705:

#include "mbed.h"
 
Serial pc(USBTX, USBRX); // tx, rx
Serial device(p28, p27);  // tx, rx
 
int main() {
    device.baud(57600);
    while(1) {
        if(pc.readable()) {
            device.putc(pc.getc());
        }
        if(device.readable()) {
            pc.putc(device.getc());
        }
    }
}