Dependencies:   Led-libary TextLCD mbed

Files at this revision

API Documentation at this revision

Comitter:
ogris
Date:
Fri Apr 15 18:06:00 2016 +0000
Parent:
29:42646ca2f941
Commit message:
jakob offline/com funkt net;

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 42646ca2f941 -r 3482779d97af main.cpp
--- a/main.cpp	Fri Apr 15 14:18:11 2016 +0000
+++ b/main.cpp	Fri Apr 15 18:06:00 2016 +0000
@@ -324,7 +324,7 @@
     Random.start();
 
     for (char k = 0; k < 255; k++)
-        textPos[i]=4;
+        textPos[k]=4;
     
     menuInit();
     //Random.stop();
@@ -1144,51 +1144,51 @@
     VHS = 0;
     switch (postion)
     {
-        case 0x15:
+        case 0x49:
             out = 0;
-            //zustand 7 aendern
+            //zustand 7 disable
             break;
-        case 0x25:
+        case 0x89:
             out = 0;
             //zustand kleinstmöglicher zustand
             break;
-        case 0x35:
+        case 0xc9:
             out = 0;
             //zustand groestmoeglich
             break;
-        case 0x19:
+        case 0x51:
             out = 0;
             //schmeisszwang
             break;
-        case 0x29:
+        case 0x91:
             out = 0;
             //go home first
             break;
-        case 0x39:
+        case 0xd1:
             out = 0;
             //ausfahrzwang
             break;
-        case 0x17:
+        case 0x4b:
             out = 0;
             //Spiel-Menü:laden
             break;
-        case 0x27:
+        case 0x8b:
             out = 0;
             //Spiel-Menü:speichern
             break;
-        case 0x37:
+        case 0xcb:
             out = 0;
             //Spiel-Menü:reset
             break;
-        case 0x1b:
+        case 0x53:
             out = 0;
             //Config:laden
             break;
-        case 0x2b:
+        case 0x93:
             out = 0;
             //Config:speichern
             break;
-        case 0x3b:
+        case 0xd3:
             out = 0;
             //Config:reset
             break;
@@ -1324,7 +1324,7 @@
                 Farben[1] = TestC;
             selctecolor = 4;
             break;
-        case 0x66:
+        case 0x4a:
             out = 0;
             //Farbe -> R
             if(selctecolor == 4)
@@ -1332,7 +1332,7 @@
             else
                 selctecolor = 4;
             break;
-        case 0xa6:
+        case 0x8a:
             out = 0;
             //Farbe -> G
             if(selctecolor == 4)
@@ -1340,7 +1340,7 @@
             else
                 selctecolor = 4;
             break;
-        case 0xe6:
+        case 0xeca:
             out = 0;
             //Farbe -> B
             if(selctecolor == 4)
@@ -1655,7 +1655,7 @@
     lcd.locate(1, 3);
     lcd.printf(text_ln3[textPos[postion]]);
     port.printf("D%c%c%s\n", 28, 30, text_ln3[textPos[postion]]);
-    if(textPos[postion]]==5)
+    if(textPos[postion]==5)
     {
         lcd.locate(9, 1);
         lcd.printf("%d",postion);
@@ -1886,25 +1886,25 @@
  textPos[0x06] = 0x6;
  textPos[0x07] = 0x7;
  textPos[0x08] = 0x4;
- textPos[0x09] = 0x9;
- textPos[0x0a] = 0xA;
- textPos[0x0b] = 0xB;
+ textPos[0x09] = 0x5;
+ textPos[0x0a] = 0x11;
+ textPos[0x0b] = 0x7;
  textPos[0x0c] = 0x4;
  textPos[0x0d] = 0xD;
  textPos[0x0e] = 0xE;
  textPos[0x0f] = 0xF;
  textPos[0x10] = 0x10;
- textPos[0x11] = 0x11;
- textPos[0x12] = 0x12;
- textPos[0x13] = 0x13;
+ textPos[0x11] = 0x9;
+ textPos[0x12] = 0xA;
+ textPos[0x13] = 0xb;
  textPos[0x14] = 0x14;
  textPos[0x15] = 0x15;
  textPos[0x16] = 0x11;
  textPos[0x17] = 0x17;
  textPos[0x18] = 0x18;
- textPos[0x19] = 0x19;
- textPos[0x1a] = 0x12;
- textPos[0x1b] = 0x1B;
+ textPos[0x19] = 0xD;
+ textPos[0x1a] = 0xe;
+ textPos[0x1b] = 0xf;
  textPos[0x1c] = 0x1C;
  textPos[0x1d] = 0xC;
  textPos[0x1e] = 0x14;