speech to text converter

Dependencies:   mbed

Revision:
0:4836cf3f07cd
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Mon Apr 03 23:21:56 2017 +0000
@@ -0,0 +1,29 @@
+#include "mbed.h"
+#include <stdio.h>
+#include <string.h>
+
+Serial pc(USBTX, USBRX);
+Serial device(PTC15, PTC14);
+ 
+unsigned char recivedchar[255];
+int i; 
+
+int main()
+{
+    printf("\n **********READY********** \n");
+    unsigned char rx;
+    device.baud(9600);
+    while(1) 
+    {  
+         if(device.readable()) 
+        {
+            for(i =0;i<255;i++)
+            {
+            rx = device.getc();
+            recivedchar[i] =rx;
+            pc.printf("%c",recivedchar[i]);
+            break;
+            } 
+         }
+    }
+}