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.
Diff: maint.cpp
- 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());
+ }
+
+ }
+
+}
