4

Dependencies:   IHM mbed

Files at this revision

API Documentation at this revision

Comitter:
saioun
Date:
Tue May 29 15:23:04 2018 +0000
Commit message:
k

Changed in this revision

IHM.lib Show annotated file Show diff for this revision Revisions of this file
NBoard.h 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
mbed.bld Show annotated file Show diff for this revision Revisions of this file
diff -r 000000000000 -r ddbd9117876b IHM.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/IHM.lib	Tue May 29 15:23:04 2018 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/slowness/code/IHM/#a9e51ac904e2
diff -r 000000000000 -r ddbd9117876b NBoard.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/NBoard.h	Tue May 29 15:23:04 2018 +0000
@@ -0,0 +1,11 @@
+#include "mbed.h"
+#include "IHM.h"
+
+DigitalOut Led0(PB_3);
+DigitalOut Led1(PA_7);
+DigitalOut Led2(PA_6);
+DigitalOut Led3(PA_5);
+
+DigitalIn Bp0(PA_9,PullUp), Bp1(PA_10,PullUp), Bp2(PB_0,PullUp), Bp3(PB_7,PullUp);
+
+BusOut leds(PB_3,PA_7,PA_6,PA_5,PA_3,PA_1,PA_0,PA_2);
\ No newline at end of file
diff -r 000000000000 -r ddbd9117876b main.cpp
--- /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
diff -r 000000000000 -r ddbd9117876b mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Tue May 29 15:23:04 2018 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/mbed_official/code/mbed/builds/5aab5a7997ee
\ No newline at end of file