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.
Revision 0:09540e48b0da, committed 2014-12-08
- Comitter:
- morimoriYNCT
- Date:
- Mon Dec 08 06:28:13 2014 +0000
- Commit message:
- ????????????
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
| mbed.bld | Show annotated file Show diff for this revision Revisions of this file |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Mon Dec 08 06:28:13 2014 +0000
@@ -0,0 +1,37 @@
+/**********************************
+check: OK, ublox 5T
+**********************************/
+#include "mbed.h"
+
+// serial
+Serial serial_gps(p9, p10); // tx, rx
+Serial serial_pc(USBTX, USBRX); // tx, rx
+
+
+void setup()
+{
+ serial_gps.baud(9600);
+ serial_pc.baud(115200);
+
+ serial_pc.printf("hello\n");
+ wait(3.0);
+}
+
+void loop()
+{
+ if(serial_gps.readable())
+ {
+ //serial_pc.printf("hoge\n");
+ char c = serial_gps.getc();
+ serial_pc.printf("%c", c);
+ }
+}
+
+int main() {
+ setup();
+
+ while(1)
+ {
+ loop();
+ }
+}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Mon Dec 08 06:28:13 2014 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/4fc01daae5a5 \ No newline at end of file