Exo

Dependencies:   IHM mbed

Files at this revision

API Documentation at this revision

Comitter:
Quent1nl
Date:
Tue May 29 14:13:06 2018 +0000
Commit message:
EX14

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 11d58ceaff35 IHM.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/IHM.lib	Tue May 29 14:13:06 2018 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/slowness/code/IHM/#a9e51ac904e2
diff -r 000000000000 -r 11d58ceaff35 Nboard.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Nboard.h	Tue May 29 14:13:06 2018 +0000
@@ -0,0 +1,5 @@
+#include "mbed.h"
+
+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),bp1(PA_10,PullUp),bp2(PB_0,PullUp),bp3(PB_7,PullUp);
+BusOut Bus8Leds(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 11d58ceaff35 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Tue May 29 14:13:06 2018 +0000
@@ -0,0 +1,20 @@
+#include "Nboard.h"
+#include "IHM.h"
+IHM ihm;
+
+int main()
+{
+short n=1, b=1;
+    while(1) {
+        ihm.BAR_set(n);
+        wait(0.1);
+        n=n<<1;
+        b++;
+        if(b>10) {
+            wait(0.1);
+            n=n>>10;
+            b=1;
+        }
+    }
+
+}
diff -r 000000000000 -r 11d58ceaff35 mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Tue May 29 14:13:06 2018 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/mbed_official/code/mbed/builds/5aab5a7997ee
\ No newline at end of file