Librarie pour ecran 128x32 de MyLab

Dependents:   MyLab_Lib

Revision:
13:337e207baca2
Parent:
12:00bbd42614c7
diff -r 00bbd42614c7 -r 337e207baca2 menu.cpp
--- a/menu.cpp	Tue Mar 29 18:56:20 2016 +0000
+++ b/menu.cpp	Tue Mar 29 20:29:20 2016 +0000
@@ -18,21 +18,26 @@
        switch (menuItem)
        {
            case 0:
-               lcd.printf("ARM mBed IoT App");
+               lcd.printf("mBed Librairie pour MyLab");
                lcd.locate(0,16);
                lcd.printf("Scroll with joystick");
                break;
            case 1:
-               lcd.printf("Websocket App");
+               lcd.printf("Lecture de deux notes");
                lcd.locate(0,16);
-               lcd.printf("Click center to Start Snake");
+               lcd.printf("Click center to Start");
                break;
            case 2:
-               lcd.printf("MQTT App:");
+               lcd.printf("Enregistrement audio");
                lcd.locate(0,16);
                lcd.printf("Click center to Start");
                break;
            case 3:
+        	   lcd.printf("Lecture valeur x acc");
+        	   lcd.locate(0,16);
+        	   lcd.printf("Click center to Start");
+        	   break;
+           case 4:
           	 lcd.printf("Credits");
           	 lcd.locate(0,16);
           	 lcd.printf("Favre Lucas ITI3 Hepia ");
@@ -47,7 +52,7 @@
      if (strcmp(pos,"South") == 0)
      {
          joystickPos = "DOWN";
-         if (menuItem >= 0 && menuItem < 3)
+         if (menuItem >= 0 && menuItem < 4)
              printMenu(++menuItem);
      }
      else if (strcmp(pos,"Center") == 0){
@@ -55,12 +60,14 @@
     		 select_app = 1;
     	 else if(menuItem == 2)
     		 select_app = 2;
+    	 else if(menuItem == 3)
+			 select_app = 3;
          joystickPos = "CLICK";
      }
      else if (strcmp(pos,"North") == 0)
      {
          joystickPos = "UP";
-         if (menuItem <= 3 && menuItem > 0)
+         if (menuItem <= 4 && menuItem > 0)
              printMenu(--menuItem);
      }
      return select_app;