Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
main.cpp
00001 /********************************** 00002 check: OK, ublox 5T 00003 **********************************/ 00004 #include "mbed.h" 00005 00006 // serial 00007 Serial serial_gps(p9, p10); // tx, rx 00008 Serial serial_pc(USBTX, USBRX); // tx, rx 00009 00010 00011 void setup() 00012 { 00013 serial_gps.baud(9600); 00014 serial_pc.baud(115200); 00015 00016 serial_pc.printf("hello\n"); 00017 wait(3.0); 00018 } 00019 00020 void loop() 00021 { 00022 if(serial_gps.readable()) 00023 { 00024 //serial_pc.printf("hoge\n"); 00025 char c = serial_gps.getc(); 00026 serial_pc.printf("%c", c); 00027 } 00028 } 00029 00030 int main() { 00031 setup(); 00032 00033 while(1) 00034 { 00035 loop(); 00036 } 00037 }
Generated on Tue Jul 19 2022 02:05:57 by
1.7.2