⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 menu.lst

📁 倒车雷达源代码
💻 LST
📖 第 1 页 / 共 3 页
字号:
  40      =1  unsigned int code char_sx26[9]={9,16,30,24,13,29,19,1,24};//function
  41      =1  
  42      =1  unsigned int code char_sx27[11]={11,12,22,30,15,0,28,13,27,15,15};//blue scree
  43      =1  unsigned int code char_sx28[10]={10,11,30,29,1,0,28,18,30,29};//auto shut
  44      =1  unsigned int code char_sx29[6]={6,13,1,47,1,27}; //color
  45      =1  unsigned int code char_sx30[6]={6,19,24,2530,29};//input
  46      =1  unsigned int code char_sx31[7]={7,33,115,29,30,27,24};//x-turn
  47      =1  unsigned int code char_sx32[7]={7,34,115,29,30,27,24};//y-turn
  48      =1  unsigned int code char_sx33[5]={5,22,11,24,17};//lang
  49      =1  unsigned int code char_sx34[11]={11,11,22,11,27,23,0,24,15,11,27};//alarm near
  50      =1  unsigned int code char_sx35[10]={10,11,22,11,27,23,0,18,19,29}; //alarm hit
  51      =1  unsigned int code char_sx36[12]={12,11,22,11,27,23,0,16,1,27,29,18};//alarm forth
  52      =1  
  53      =1  /************************************************************/
  54      =1  
  55      =1  unsigned int code char_sx37[3]={3,444,445};//自动
  56      =1  unsigned int code char_sx38[4]={4,25,11,22};//PAL
  57      =1  unsigned int code char_sx39[5]={5,24,29,28,13};//NTSC
  58      =1  
  59      =1  unsigned int code char_sx40[4]={4,11,31,2};//AV1
  60      =1  unsigned int code char_sx41[4]={4,11,31,3};//AV2
  61      =1  unsigned int code char_sx42[4]={4,11,31,4};//AV3
  62      =1  unsigned int code char_sx43[4]={4,11,31,5};//AV4
  63      =1  
  64      =1  unsigned int code char_sx44[6]={6,359,117,15,24,17};//中/eng
  65      =1  unsigned int code char_sx45[6]={6,15,24,17,117,359};//eng/中
  66      =1  
  67      =1  unsigned int code char_sx46[4]={4,1,16,16};//OFF
  68      =1  unsigned int code char_sx47[3]={3,1,24};//ON
  69      =1  
  70      =1  unsigned int code char_sx48[5]={5,11,30,29,1};//AUTO
  71      =1  unsigned int code char_sx49[5]={5,473,259,115,2};//视频-1
  72      =1  unsigned int code char_sx50[5]={5,473,259,115,3};//视频-2
  73      =1  unsigned int code char_sx51[5]={5,473,259,115,4};//视频-3
  74      =1  unsigned int code char_sx52[5]={5,473,259,115,5};//视频-4
  75      =1  
  76      =1  unsigned int code char_sx53[3]={3,331,332};//音量
  77      =1  unsigned int code char_sx54[4]={4,31,1,22};//vol
  78      =1  
  79      =1  /**********************/
   3          
   4          #define background_color 0x00
   5          #define biue 0x01
   6          #define green 0x02
   7          #define cyan 0x03
   8          #define red 0x04
   9          #define magenta 0x05
  10          #define yellow 0x06
C51 COMPILER V7.01  MENU                                                                   06/10/2003 09:42:40 PAGE 6   

  11          #define white 0x07
  12          
  13          extern unsigned int xdata bojina;//近距离报警区
  14          extern unsigned int xdata bojinb;//中距离报警
  15          extern unsigned int xdata bojinc;//远距离
  16          extern  char xdata video;//视频切换ON-OFF
  17          extern unsigned char xdata englishchina;//中英切换
  18          extern unsigned char xdata bright;//亮度
  19          extern unsigned char xdata contrast;//对比度
  20          extern unsigned char xdata color;//彩色
  21          extern unsigned char xdata blue;//兰屏
  22          extern unsigned char xdata power;//电源自动光机
  23          extern  char xdata p_n;//P/N
  24          extern unsigned char xdata x;//x
  25          extern unsigned char xdata y;//y
  26          
  27          void tuxa_menu(char r);//图像菜单
  28          void gonen_menu(char r);//功能菜单
  29          void jintu(char r);//进度条
  30          void tuxa_su(char r);//图象值
  31          void gonen_su(char r);//功能值
  32          void vol_char();
  33          extern void osd_char_a(unsigned char row,unsigned  char column,//单字符-格式(a)
  34                                     unsigned int char_rom_address, unsigned char color,
  35                                     unsigned char background,//字符颜色,背景颜色,是否闪烁
  36                                             unsigned char blink);//写入显示字符
  37          
  38          extern void osd_window(unsigned char s,unsigned char row_start,unsigned char row_end,
  39                                              unsigned char column_start,unsigned char column_end,//开始结束
  40                                                 unsigned char color,unsigned char wint,//颜色,亮度,
  41                                                 unsigned char wshd);//打开窗口
  42          
  43          extern void osd_char_b(unsigned char row,unsigned char column_start,
  44                                         unsigned char attribute,unsigned int char_p[]) ;
  45          
  46          void tuxa_menu(char r)//图像菜单
  47          {
  48   1      unsigned char as1,as2,as3;
  49   1      osd_window(1, 0, 9, 0, 11,biue, 0, 0);//打开A窗口
  50   1      switch(r)
  51   1      {
  52   2      case 0: as1=0x56;as2=0x06;as3=0x06;break;
  53   2      case 1: as1=0x06;as2=0x56;as3=0x06;break;
  54   2      case 2: as1=0x06;as2=0x06;as3=0x56;break;
  55   2      default:;
  56   2      }
  57   1      if(englishchina!=0)//中文
  58   1      {
  59   2      osd_char_b(2,2,0x06,char_sx1);//图象
  60   2      
  61   2      osd_char_b(4,2,as1,char_sx2);//亮度
  62   2      osd_char_b(5,2,as2,char_sx3);//对比度
  63   2      osd_char_b(6,2,as3,char_sx4);//彩色
  64   2      
  65   2      switch(r)
  66   2      {
  67   3      case 0: osd_char_b(9,3,0x06,char_sx5);break;//亮度
  68   3      case 1: osd_char_b(9,3,0x06,char_sx6);break;//对比度
  69   3      case 2: osd_char_b(9,3,0x06,char_sx7);break;//彩色
  70   3      default:;
  71   3      }
  72   2      }
C51 COMPILER V7.01  MENU                                                                   06/10/2003 09:42:40 PAGE 7   

  73   1      else {//英文
  74   2      osd_char_b(2,2,0x06,char_sx8);//picture
  75   2      
  76   2      osd_char_b(4,2,as1,char_sx9);//bright
  77   2      osd_char_b(5,2,as2,char_sx10);//contrast
  78   2      osd_char_b(6,2,as3,char_sx11);//color
  79   2      
  80   2      switch(r)
  81   2      {
  82   3      case 0: osd_char_b(9,3,0x06,char_sx12);break;//bright
  83   3      case 1: osd_char_b(9,3,0x06,char_sx13);break;//contrast
  84   3      case 2: osd_char_b(9,3,0x06,char_sx14);break;//color
  85   3      default:;
  86   3      }
  87   2      }
  88   1      }
  89          
  90          void jintu(char r)//进度条
  91          {
  92   1      unsigned char i;
  93   1       osd_char_a(10, 2, 437, 0x06, 0, 0);//-
  94   1                  for(i=0;i<=r/12;i++)
  95   1                        osd_char_a(10,i+2,438,0x06,0,0);
  96   1                  if(r%3==1)
  97   1                    osd_char_a(10,r/12+2,442,0x06,0,0); 
  98   1                  else  if(r%3==2)
  99   1                      osd_char_a(10,r/12+2,441,0x06,0,0); 
 100   1                  else  if(r%3==3)
 101   1                      osd_char_a(10,r/12+2,440,0x06,0,0); 
 102   1                  else ;
 103   1                  for(i=r/12;i<21;i++)
 104   1                      osd_char_a(10,r/12+2,439,0x06,0,0); 
 105   1                  
 106   1                  osd_char_a(10,24,436,0x06,0,0);//+
 107   1      }
 108          
 109          void gonen_menu(char r)//功能菜单
 110          {
 111   1      unsigned char as1,as2,as3,as4,as5,as6,as7,as8,as9,as10;
 112   1      osd_window(1, 0, 9, 0, 11,biue, 0, 0);//打开A窗口
 113   1      switch(r)
 114   1      {
 115   2      case 0: as1=0x56;as2=0x06;as3=0x06;as4=0x06;as5=0x06;as6=0x06;as7=0x06;as8=0x06;as9=0x06;as10=0x06;break;
 116   2      case 1: as1=0x06;as2=0x56;as3=0x06;as4=0x06;as5=0x06;as6=0x06;as7=0x06;as8=0x06;as9=0x06;as10=0x06;break;
 117   2      case 2: as1=0x06;as2=0x06;as3=0x56;as4=0x06;as5=0x06;as6=0x06;as7=0x06;as8=0x06;as9=0x06;as10=0x06;break;
 118   2      case 3: as1=0x06;as2=0x06;as3=0x06;as4=0x56;as5=0x06;as6=0x06;as7=0x06;as8=0x06;as9=0x06;as10=0x06;break;
 119   2      case 4: as1=0x06;as2=0x06;as3=0x06;as4=0x06;as5=0x56;as6=0x06;as7=0x06;as8=0x06;as9=0x06;as10=0x06;break;
 120   2      case 5: as1=0x06;as2=0x06;as3=0x06;as4=0x06;as5=0x06;as6=0x56;as7=0x06;as8=0x06;as9=0x06;as10=0x06;break;
 121   2      case 6: as1=0x06;as2=0x06;as3=0x06;as4=0x06;as5=0x06;as6=0x06;as7=0x56;as8=0x06;as9=0x06;as10=0x06;break;
 122   2      case 7: as1=0x06;as2=0x06;as3=0x06;as4=0x06;as5=0x06;as6=0x06;as7=0x06;as8=0x56;as9=0x06;as10=0x06;break;
 123   2      case 8: as1=0x06;as2=0x06;as3=0x06;as4=0x06;as5=0x06;as6=0x06;as7=0x06;as8=0x06;as9=0x56;as10=0x06;break;
 124   2      case 9: as1=0x06;as2=0x06;as3=0x06;as4=0x06;as5=0x06;as6=0x06;as7=0x06;as8=0x06;as9=0x06;as10=0x56;break;
 125   2      default:;
 126   2      }
 127   1      if(englishchina!=0)//中文
 128   1      {
 129   2      osd_char_b(1,2,0x06,char_sx15);//功能
 130   2      
 131   2      osd_char_b(3,2,as1,char_sx16);
 132   2      osd_char_b(4,2,as2,char_sx17);
 133   2      osd_char_b(5,2,as3,char_sx18);
 134   2      osd_char_b(6,2,as4,char_sx19);
C51 COMPILER V7.01  MENU                                                                   06/10/2003 09:42:40 PAGE 8   

 135   2      osd_char_b(7,2,as5,char_sx20);
 136   2      osd_char_b(8,2,as6,char_sx21);
 137   2      osd_char_b(9,2,as7,char_sx22);
 138   2      osd_char_b(10,2,as8,char_sx23);
 139   2      osd_char_b(11,2,as9,char_sx24);
 140   2      osd_char_b(12,2,as10,char_sx25);        
 141   2      }
 142   1      else {//英文
 143   2      osd_char_b(1,2,0x06,char_sx26);//FUNCTION
 144   2      
 145   2      osd_char_b(3,2,as1,char_sx27);
 146   2      osd_char_b(4,2,as2,char_sx28);
 147   2      osd_char_b(5,2,as3,char_sx29);
 148   2      osd_char_b(61,2,as4,char_sx30);
 149   2      osd_char_b(7,2,as5,char_sx31);
 150   2      osd_char_b(8,2,as6,char_sx32);
 151   2      osd_char_b(9,2,as7,char_sx33);
 152   2      osd_char_b(10,2,as8,char_sx34);
 153   2      osd_char_b(11,2,as9,char_sx35);
 154   2      osd_char_b(12,2,as10,char_sx36); 
 155   2      }
 156   1      }  
 157          
 158          void tuxa_su(char r)//图象值
 159          {
 160   1       unsigned char us;
 161   1      unsigned char as1,as2,as3;
 162   1      switch(r)
 163   1      {
 164   2      case 0: as1=0x56;as2=0x06;as3=0x06;break;
 165   2      case 1: as1=0x06;as2=0x56;as3=0x06;break;
 166   2      case 2: as1=0x06;as2=0x06;as3=0x56;break;
 167   2      default:;
 168   2      }
 169   1            us=(bright/4)/10;
 170   1            if(us==0)
 171   1                {
 172   2                osd_char_a(4,15,0,0x06,0,0);//亮度值
 173   2                if(r==0)
 174   2                osd_char_a(9,20,0,0x06,0,0);//亮度值
 175   2                }
 176   1            else   
 177   1               {
 178   2                osd_char_a(4,15,us,as1,0,0);//亮度值10位
 179   2                 if(r==0)
 180   2                 osd_char_a(9,20,us,0x06,0,0);//亮度值10位
 181   2                }
 182   1            us=(bright/4)%10;    
 183   1                osd_char_a(4,16,us,as1,0,0);//亮度值个位
 184   1             if(r==0)
 185   1                osd_char_a(9,21,us,0x06,0,0);//亮度值个位
 186   1      
 187   1                
 188   1            
 189   1           us=(contrast/4)/10;
 190   1           if(us==0)
 191   1             {
 192   2               osd_char_a(5,15,0,0x06,0,0);
 193   2                if(r==1)
 194   2               osd_char_a(9,20,0,0x06,0,0);
 195   2             }
 196   1           else
C51 COMPILER V7.01  MENU                                                                   06/10/2003 09:42:40 PAGE 9   

 197   1             {
 198   2              osd_char_a(5,15,us,as2,0,0);//对比度值10位
 199   2               if(r==1)
 200   2                  osd_char_a(9,20,us,0x06,0,0);//对比度值10位  
 201   2              }
 202   1           us=(contrast/4)%10;    
 203   1            osd_char_a(5,16,us,as2,0,0);//对比度值个位
 204   1             if(r==1)
 205   1              osd_char_a(9,21,us,0x06,0,0);//对比度值个位
 206   1      
 207   1              
 208   1      
 209   1          us=(color/4)/10;
 210   1        if(us==0)
 211   1           {
 212   2           osd_char_a(6,15,0,0x06,0,0);
 213   2            if(r==2)
 214   2           osd_char_a(9,20,0,0x06,0,0);
 215   2           }
 216   1        else
 217   1           {
 218   2           osd_char_a(6,15,us,as3,0,0);//彩色值
 219   2           if(r==2)
 220   2           osd_char_a(9,20,us,0x06,0,0);//彩色值
 221   2           }
 222   1        us=(color/4)%10;
 223   1           osd_char_a(6,16,us,as3,0,0);//彩色值
 224   1          if(r==2)
 225   1          osd_char_a(9,21,us,0x06,0,0);//彩色值
 226   1      }

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -