Subversion Repositories FlightCtrl

Rev

Rev 1994 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1994 Rev 1995
Line 6... Line 6...
6
// + see the File "License.txt" for further Informations
6
// + see the File "License.txt" for further Informations
7
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
7
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
8
#include "main.h"
8
#include "main.h"
9
#include "eeprom.h"
9
#include "eeprom.h"
Line -... Line 10...
-
 
10
 
-
 
11
#ifdef WITH_MKTOOL_Display      // only include functions if DEBUG is defined in main.h
-
 
12
 
-
 
13
#warning : "### with MKTool Display ###"
10
 
14
 
11
char DisplayBuff[80];
15
char DisplayBuff[80];
Line 12... Line 16...
12
unsigned char DispPtr = 0;
16
unsigned char DispPtr = 0;
13
 
17
 
Line 33... Line 37...
33
}
37
}
Line 34... Line 38...
34
 
38
 
35
void Menu(void)
39
void Menu(void)
36
 {
40
 {
-
 
41
  unsigned char i;
37
  unsigned char i;
42
 
38
  if(RemoteKeys & KEY1) { if(MenuePunkt) MenuePunkt--; else MenuePunkt = MaxMenue;}
43
  if(RemoteKeys & KEY1) { if(MenuePunkt) MenuePunkt--; else MenuePunkt = MaxMenue;}
39
  if(RemoteKeys & KEY2) { if(MenuePunkt == MaxMenue) MenuePunkt = 0; else MenuePunkt++;}
44
  if(RemoteKeys & KEY2) { if(MenuePunkt == MaxMenue) MenuePunkt = 0; else MenuePunkt++;}
40
  if((RemoteKeys & KEY1) && (RemoteKeys & KEY2)) MenuePunkt = 0;
45
  if((RemoteKeys & KEY1) && (RemoteKeys & KEY2)) MenuePunkt = 0;
41
  LcdClear();
46
  LcdClear();
42
  if(MenuePunkt < 10) {LCD_printfxy(17,0,"[%i]",MenuePunkt);}
47
  if(MenuePunkt < 10) {LCD_printfxy(17,0,"[%i]",MenuePunkt);}
Line 43... Line 48...
43
  else {LCD_printfxy(16,0,"[%i]",MenuePunkt);};
48
  else {LCD_printfxy(16,0,"[%i]",MenuePunkt);};
44
 
49
 
45
  switch(MenuePunkt)
50
  switch(MenuePunkt)
46
   {
51
   {
47
    case 0:
52
    case 0:
48
           LCD_printfxy(0,0,"+ MikroKopter +");
53
           LCD_printfxy(0,0,"--Jeti+ 0.20---");
Line 49... Line 54...
49
           LCD_printfxy(0,1,"HW:V%d.%d SW:%d.%d%c",PlatinenVersion/10,PlatinenVersion%10, VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH +'a');
54
           LCD_printfxy(0,1,"HW:V%d.%d SW:%d.%d%c",PlatinenVersion/10,PlatinenVersion%10, VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH +'a');
50
           LCD_printfxy(0,2,"Setting:%d %s", GetActiveParamSet(),Mixer.Name);
55
           LCD_printfxy(0,2,"Setting:%d %s", GetActiveParamSet(),Mixer.Name);
Line 213... Line 218...
213
           MenuePunkt = 0;
218
           MenuePunkt = 0;
214
           break;
219
           break;
215
    }
220
    }
216
    RemoteKeys = 0;
221
    RemoteKeys = 0;
217
}
222
}
-
 
223
#endif