Bernd Boemer
/
mbed_blinki
my first test rpogram
main.cpp
- Committer:
- behbeh
- Date:
- 2022-04-04
- Revision:
- 0:9f226da4bfca
File content as of revision 0:9f226da4bfca:
#include "mbed.h" DigitalOut myLed1(LED1); DigitalOut myLed2(LED2); DigitalOut myLed3(LED3); //The pushbutton or power on caused a reset DigitalOut myLed4(LED4); //The watchdog timer caused a reset Serial pc(USBTX, USBRX); // tx, rx Serial gps(p28,p27); // tx, rx char msg; T myFunc() { return T(); } int main() { T t = myFunc(); pc.baud(115200); gps.baud(38400); while(1) { while(gps.getc() != '$'); msg = gps.getc(); pc.printf("%c",msg); } }