Programme test pour librairie MyLab

Dependencies:   MyLab_Lib mbed

Files at this revision

API Documentation at this revision

Comitter:
lucas_favre
Date:
Tue Mar 29 20:47:40 2016 +0000
Parent:
1:542bff91fba9
Commit message:
Ajout du menu dans la librairie;

Changed in this revision

MyLab_Lib.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 542bff91fba9 -r 75dd587ca336 MyLab_Lib.lib
--- a/MyLab_Lib.lib	Tue Mar 29 20:31:56 2016 +0000
+++ b/MyLab_Lib.lib	Tue Mar 29 20:47:40 2016 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/lucas_favre/code/MyLab_Lib/#e9d398c3fbb4
+http://mbed.org/users/lucas_favre/code/MyLab_Lib/#48800c84346c
diff -r 542bff91fba9 -r 75dd587ca336 main.cpp
--- a/main.cpp	Tue Mar 29 20:31:56 2016 +0000
+++ b/main.cpp	Tue Mar 29 20:47:40 2016 +0000
@@ -21,10 +21,10 @@
 
 
 int main() {
-    printMenu(0);
+    periph.printMenu(0);
     while(1) {
 
-        switch (setMenu()) {
+        switch (periph.setMenu()) {
             case 1:
                 lcd.cls();
                 lcd.locate(0,0);
@@ -32,8 +32,8 @@
                 periph.PlayNote(969.0, 1, 1);
                 periph.PlayNote(800.0, 1, 0.5);
                 wait(1);
-                select_app=0;
-                printMenu(0);
+                periph.select_app=0;
+                periph.printMenu(0);
                 break;
             case 2:
                 lcd.cls();
@@ -49,8 +49,8 @@
                 lcd.printf("Lecture de l'enregistrement");
                 periph.Sound_Play(periph.dat);
                 wait(1);
-                select_app=0;
-                printMenu(0);
+                periph.select_app=0;
+                periph.printMenu(0);
                 break;
             case 3:
                 lcd.cls();
@@ -61,8 +61,8 @@
                     lcd.locate(0,12);
                     lcd.printf("%f",periph.val_x);
                 }
-                select_app=0;
-                printMenu(0);
+                periph.select_app=0;
+                periph.printMenu(0);
                 break;
         }
     }