Exo

Dependencies:   IHM_V2 mbed

Files at this revision

API Documentation at this revision

Comitter:
Quent1nl
Date:
Tue May 29 14:17:23 2018 +0000
Commit message:
EX30

Changed in this revision

IHM_V2.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
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/IHM_V2.lib	Tue May 29 14:17:23 2018 +0000
@@ -0,0 +1,1 @@
+http://os.mbed.com/teams/NBoard/code/IHM_V2/#ad91067e3f6d
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Nboard.h	Tue May 29 14:17:23 2018 +0000
@@ -0,0 +1,21 @@
+#include "mbed.h"
+#include "IHM.h"
+
+IHM ihm;
+Timer timer;
+
+#define Ana0 000
+#define Ana1 001
+#define Ana2 010
+#define Ana3 011
+#define Ana4 100
+#define Ana5 101
+#define AnIn 110
+#define Ana7 111
+
+
+DigitalOut led0(PB_3), led1(PA_7),led2(PA_6),led3(PA_5),led4(PA_3),led5(PA_1),led6(PA_0),led7(PA_2);
+DigitalIn bp(PA_9, PullUp),bou1(PA_10,PullUp),bou2(PB_0,PullUp),bou3(PB_7,PullUp);
+BusOut Bus8Leds(PB_3,PA_7,PA_6,PA_5,PA_3,PA_1,PA_0,PA_2);
+BusOut BusSelMux(PF_0,PF_1,PA_8);
+AnalogIn AnaIn(PB_1);
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Tue May 29 14:17:23 2018 +0000
@@ -0,0 +1,23 @@
+#include "Nboard.h"
+IHM ihm;
+Timer timer;
+void fct_a_mesurer();
+int main()
+{
+    float time=0.0 ;
+    timer.start();
+    fct_a_mesurer();
+    timer.stop();
+    time=timer.read();
+    ihm.LCD_gotoxy(1,0);
+    ihm.LCD_printf("%f  ",time);
+
+}
+
+
+
+    void fct_a_mesurer() {
+        ihm.LCD_clear();
+        ihm.LCD_gotoxy(0,0);
+        ihm.LCD_printf("I'm in ");
+    }
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Tue May 29 14:17:23 2018 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/5aab5a7997ee
\ No newline at end of file