mbvn,ldfbjnlb,xcbjdf

Dependencies:   mbed

main.cpp

Committer:
stersky
Date:
2019-01-27
Revision:
0:2bea849b5ba1

File content as of revision 0:2bea849b5ba1:

#include "mbed.h"

Serial PC(USBTX, USBRX);
Serial GPS(p13,p14);
char a;

int main() {
    GPS.baud(9600);
    PC.baud(460800);
    
    while(1) {
        if (GPS.readable()) {  // attention PC.readable reste à 1 tant qu'il n'y a pas eu de getc qui vide le buffer
            a=GPS.getc();
            PC.printf("%c",a);
            }
    }
}