TeamLegrand / Mbed 2 deprecated Test_liaison_serie_cAR

Dependencies:   C12832 mbed

Fork of Serial_HelloWorld_Mbed by mbed official

Files at this revision

API Documentation at this revision

Comitter:
LouisReynier
Date:
Tue Jan 23 09:52:37 2018 +0000
Parent:
0:879aa9d0247b
Commit message:
Lecture d'un caractere re?u sur liaison s?rie et affichage sur LCD mbed

Changed in this revision

C12832.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 879aa9d0247b -r a33147484769 C12832.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/C12832.lib	Tue Jan 23 09:52:37 2018 +0000
@@ -0,0 +1,1 @@
+https://mbed.org/users/askksa12543/code/C12832/#990d5eec2ef6
diff -r 879aa9d0247b -r a33147484769 main.cpp
--- 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