Dependencies:   Led-libary TextLCD mbed

Revision:
14:8f3619df12f1
Parent:
13:cb068deacb6c
Child:
15:2c4d3f806930
--- a/main.cpp	Fri Apr 01 10:16:38 2016 +0000
+++ b/main.cpp	Fri Apr 01 12:10:57 2016 +0000
@@ -1018,11 +1018,74 @@
 
 char ausfuehren(uint32_t postion)
 {
-    char out = 1;
+    char out = 1;//0 ende der postion
+    VHS = 0;
     switch (postion)
     {
-    case 0x5:
-        break;
+        case 0x15:
+            out = 0;
+            //zustand 7 aendern
+            break;
+        case 0x25:
+            out = 0;
+            //zustand kleinstmöglicher zustand
+            break;
+        case 0x35:
+            out = 0;
+            //zustand groestmoeglich
+            break;
+        case 0x19:
+            out = 0;
+            //schmeisszwang
+            break;
+        case 0x29:
+            out = 0;
+            //go home first
+            break;
+        case 0x39:
+            out = 0;
+            //ausfahrzwang
+            break;
+        case 0x17:
+            out = 0;
+            //Spiel-Menü:laden
+            break;
+        case 0x27:
+            out = 0;
+            //Spiel-Menü:speichern
+            break;
+        case 0x37:
+            out = 0;
+            //Spiel-Menü:reset
+            break;
+        case 0x1b:
+            out = 0;
+            //Config:laden
+            break;
+        case 0x2b:
+            out = 0;
+            //Config:speichern
+            break;
+        case 0x3b:
+            out = 0;
+            //Config:reset
+            break;
+        case 0x1f:
+            out = 0;
+            //Offline:new
+            break;
+        case 0x2f:
+            out = 0;
+            //Offline:reset
+            break;
+        case 0x3f:
+            out = 0;
+            //Offline:com
+            break;
+        case 0x6:
+            VHS = 1;
+            break;
+        
     default:
         break;
     }
@@ -1118,11 +1181,7 @@
         //StartMenu-Anim
     }
     posUpdate();
-    port.printf("Lpostion:%d\n",postion);
-    if(postion==0x6)
-        VHS=1;
-    else
-        VHS=0;
+    port.printf("Lpostion:0x%x\n",postion);
     if(depth>0)
     {
         print_menu();
@@ -1150,10 +1209,7 @@
         }
     }
     posUpdate();
-    if(postion==0x6)
-        VHS=1;
-    else
-        VHS=0;
+    ausfuehren(postion);
     if(depth>0)
     {
         print_menu();