Programme qui recoit un caractere sur liaison série et affiche le caractere reçu sur l'afficheur mbed du kit d'évaluation.

Dependencies:   C12832 mbed

Fork of Serial_HelloWorld_Mbed by mbed official

Revision:
1:a33147484769
Parent:
0:879aa9d0247b
--- a/main.cpp	Tue Feb 12 17:39:05 2013 +0000
+++ b/main.cpp	Tue Jan 23 09:52:37 2018 +0000
@@ -1,10 +1,22 @@
 #include "mbed.h"
- 
+#include "C12832.h"
+
+// reception et affichage d'un caractere
+
+C12832 lcd(p5, p7, p6, p8, p11);
 Serial pc(USBTX, USBRX); // tx, rx
+
+
+int i ;
  
 int main() {
-    pc.printf("Hello World!\n");
-    while(1) {
-        pc.putc(pc.getc() + 1);
+    pc.printf("Debut \n");
+     lcd.locate(0,3);
+     while (1)
+     {
+       char c = pc.getc();
+      
+      
+        lcd.printf("%c",c);
     }
 }
\ No newline at end of file