Alexandre Lemay / Mbed 2 deprecated APP1_s5_A17

Dependencies:   mbed MMA8452

Revision:
7:b1b4db3eedb4
Parent:
5:70db90b673b9
Child:
9:b9ac1d914762
--- a/maint.cpp	Tue Sep 05 00:05:38 2017 +0000
+++ b/maint.cpp	Tue Sep 05 09:50:38 2017 +0000
@@ -1,21 +1,19 @@
-//#include "mbed.h"
-//#include "Afficheur.h"
-//
-//#define USESPI
-//
-//
-//Serial pc(USBTX, USBRX); // tx, rx
-//
-//Afficheur afficheur;
-//
-//int main() {
-//     while(1)
-//     {
-//        if(pc.readable())
-//        {
-//            afficheur.write(pc.getc());
-//        }
-//        
-//    }
-//    
-//}
+#include "mbed.h"
+#include "Afficheur.h"
+
+
+Serial pc(USBTX, USBRX); // tx, rx
+
+Afficheur afficheur;
+
+int main() {
+     while(1)
+     {
+        if(pc.readable())
+        {
+            afficheur.write(pc.getc());
+        }
+        
+    }
+    
+}