Communication

Dependencies:   mbed

Revision:
0:7630964cf96f
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Thu Jun 07 04:03:28 2018 +0000
@@ -0,0 +1,17 @@
+#include "mbed.h"
+ 
+int s=0;
+
+   Serial a(D1,D0);
+ 
+int main() {
+  
+   int c;
+   while(1) {
+       for(s=0;s<=10;s++){
+        c=s;
+         a.printf("%c",c); 
+         wait(2);
+    }
+}
+}
\ No newline at end of file