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.
Dependencies: mbed
Diff: main.cpp
- Revision:
- 0:114501d9843c
diff -r 000000000000 -r 114501d9843c main.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Wed Jul 01 12:58:24 2020 +0000
@@ -0,0 +1,24 @@
+/* TWE-Liteにmbedから適当な文字を送信するプログラム */
+
+#include "mbed.h"
+
+Serial pc(USBTX, USBRX); //Serial set up
+Serial twe(p13, p14);
+
+int main()
+{
+ int i = 0;
+
+ pc.printf("start!");
+
+ pc.baud(115200);
+ twe.baud(115200);
+
+ while(1)
+ {
+ twe.printf("%d\r\n", i);
+ wait(1);
+
+ i++;
+ }
+}
\ No newline at end of file