4

Dependencies:   IHM mbed

Revision:
0:ddbd9117876b
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Tue May 29 15:23:04 2018 +0000
@@ -0,0 +1,37 @@
+#include "NBoard.h"
+
+IHM ihm;
+
+int main()
+{
+    UINT16 val = 172, AnNaiss = 1999; 
+    float taille=1.74;
+    
+    ihm.LCD_gotoxy(0, 0);
+    ihm.LCD_printf("sylvain aioun");
+    wait(2);
+    
+    ihm.LCD_gotoxy(1, 0);
+    ihm.LCD_printf("%4d = %03X", AnNaiss, AnNaiss);
+    
+    wait(3);
+    ihm.LCD_clear();
+    
+    ihm.LCD_gotoxy(1, 0);
+    ihm.LCD_printf("%3.2fm", taille);
+    wait(2);
+    ihm.LCD_clear();
+    
+    while(Bp2 == 1); //attente bloquante
+    
+    while(1)
+    { 
+    ihm.LCD_printf("val (d): %3d", val);
+    wait(2);
+    ihm.LCD_gotoxy(1, 0);
+    ihm.LCD_printf("val (h): %02X", val);
+    wait(2);
+    ihm.LCD_clear();
+    wait(2);
+    }
+}
\ No newline at end of file