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

📄 uidraw.lst

📁 T103的开发程序 能兼容很多屏 可根据需要修改定义
💻 LST
📖 第 1 页 / 共 2 页
字号:
 171   1              OSD2Show4BPIcon(IconBT4,11,10,0,0,0,1);
 172   1              OSD2Show4BPIcon(IconBT5,14,10,0,0,0,1);
 173   1              OSD2Show4BPIcon(IconBT6,17,10,0,0,0,1);
 174   1              //Group3
 175   1              OSD2Show4BPIcon(IconBT0,20,10,0,0,0,1);
 176   1              OSD2Show4BPIcon(IconBT2,23,10,0,0,0,1);
 177   1              OSD2Show4BPIcon(IconBT3,26,10,0,0,0,1);
 178   1              //Group4
C51 COMPILER V8.08   UIDRAW                                                                11/23/2007 07:50:44 PAGE 4   

 179   1              OSD2Show4BPIcon(IconBT7,29,10,0,0,0,1);
 180   1              OSD2Show4BPIcon(IconBT8,32,10,0,0,0,1);
 181   1              OSD2Show4BPIcon(IconBT9,35,10,0,0,0,1);
 182   1      
 183   1      
 184   1      
 185   1      
 186   1              EX0 = 1;                                         
 187   1      }
 188          
 189          void CalculaterDraw()
 190          {
 191   1      /*                                 //disable tempoary
 192   1              switch(m_cCurreKey)
 193   1              {
 194   1                      case REMOTE_KEY_NUM0:   
 195   1                              OSD2Show4BPIcon(IconBT0,CALSTRX,CALSTRY+9,0,0,4,1);
 196   1                              twdDelay(1500);
 197   1                              OSD2Show4BPIcon(IconBT0,CALSTRX,CALSTRY+9,0,0,0,1);
 198   1                      break;
 199   1                      case REMOTE_KEY_NUM1:
 200   1                              OSD2Show4BPIcon(IconBT1,CALSTRX,CALSTRY+7,0,0,4,1);
 201   1                              twdDelay(1500);
 202   1                              OSD2Show4BPIcon(IconBT1,CALSTRX,CALSTRY+7,0,0,0,1);
 203   1                      break;
 204   1                      case REMOTE_KEY_NUM2:
 205   1                              OSD2Show4BPIcon(IconBT2,CALSTRX+3,CALSTRY+7,0,0,4,1);
 206   1                              twdDelay(1500);
 207   1                              OSD2Show4BPIcon(IconBT2,CALSTRX+3,CALSTRY+7,0,0,0,1);
 208   1                      break;
 209   1                      case REMOTE_KEY_NUM3:
 210   1                              OSD2Show4BPIcon(IconBT3,CALSTRX+6,CALSTRY+7,0,0,4,1);
 211   1                              twdDelay(1500);
 212   1                              OSD2Show4BPIcon(IconBT3,CALSTRX+6,CALSTRY+7,0,0,0,1);           
 213   1                      break;
 214   1                      case REMOTE_KEY_NUM4:
 215   1                              OSD2Show4BPIcon(IconBT4,CALSTRX,CALSTRY+5,0,0,4,1);
 216   1                              twdDelay(1500);
 217   1                              OSD2Show4BPIcon(IconBT4,CALSTRX,CALSTRY+5,0,0,0,1);                      
 218   1                      break;
 219   1                      case REMOTE_KEY_NUM5:
 220   1                              OSD2Show4BPIcon(IconBT5,CALSTRX+3,CALSTRY+5,0,0,4,1);
 221   1                              twdDelay(1500);
 222   1                              OSD2Show4BPIcon(IconBT5,CALSTRX+3,CALSTRY+5,0,0,0,1);
 223   1                      break;  
 224   1                  case REMOTE_KEY_NUM6:
 225   1                              OSD2Show4BPIcon(IconBT6,CALSTRX+6,CALSTRY+5,0,0,4,1);
 226   1                              twdDelay(1500);
 227   1                              OSD2Show4BPIcon(IconBT6,CALSTRX+6,CALSTRY+5,0,0,0,1);
 228   1                      break;  
 229   1                      case REMOTE_KEY_NUM7:
 230   1                              OSD2Show4BPIcon(IconBT7,CALSTRX,CALSTRY+3,0,0,4,1);
 231   1                              twdDelay(1500);
 232   1                              OSD2Show4BPIcon(IconBT7,CALSTRX,CALSTRY+3,0,0,0,1);
 233   1                      break;
 234   1                      case REMOTE_KEY_NUM8:
 235   1                              OSD2Show4BPIcon(IconBT8,CALSTRX+3,CALSTRY+3,0,0,4,1);
 236   1                              twdDelay(1500);
 237   1                              OSD2Show4BPIcon(IconBT8,CALSTRX+3,CALSTRY+3,0,0,0,1);
 238   1                      break;
 239   1                      case REMOTE_KEY_NUM9:
 240   1                              OSD2Show4BPIcon(IconBT9,CALSTRX+6,CALSTRY+3,0,0,4,1);
C51 COMPILER V8.08   UIDRAW                                                                11/23/2007 07:50:44 PAGE 5   

 241   1                              twdDelay(1500);
 242   1                              OSD2Show4BPIcon(IconBT9,CALSTRX+6,CALSTRY+3,0,0,0,1);
 243   1                      break;
 244   1                      case REMOTE_KEY_CH_INC:   // divid /
 245   1                              OSD2Show4BPIcon(IconBTdivd,CALSTRX+9,CALSTRY+3,0,0,4,1);
 246   1                              twdDelay(1500);
 247   1                              OSD2Show4BPIcon(IconBTdivd,CALSTRX+9,CALSTRY+3,0,0,0,1);
 248   1                      break;
 249   1                      case REMOTE_KEY_CH_DEC:   // mul *
 250   1                              OSD2Show4BPIcon(IconBTmul,CALSTRX+9,CALSTRY+5,0,0,4,1);
 251   1                              twdDelay(1500);
 252   1                              OSD2Show4BPIcon(IconBTmul,CALSTRX+9,CALSTRY+5,0,0,0,1);
 253   1                      break;
 254   1                      case REMOTE_KEY_VO_INC:   // sub -
 255   1                              OSD2Show4BPIcon(IconBTsub,CALSTRX+9,CALSTRY+7,0,0,4,1);
 256   1                              twdDelay(1500);
 257   1                              OSD2Show4BPIcon(IconBTsub,CALSTRX+9,CALSTRY+7,0,0,0,1);
 258   1                      break;
 259   1                      case REMOTE_KEY_VO_DEC:   // add +
 260   1                              OSD2Show4BPIcon(IconBTadd,CALSTRX+9,CALSTRY+9,0,0,4,1);
 261   1                              twdDelay(1500);
 262   1                              OSD2Show4BPIcon(IconBTadd,CALSTRX+9,CALSTRY+9,0,0,0,1);
 263   1                      break;
 264   1                      case REMOTE_KEY_MUTE:     // ans =
 265   1                              OSD2Show4BPIcon(IconBTans,CALSTRX+6,CALSTRY+9,0,0,4,1);
 266   1                              twdDelay(1500);
 267   1                              OSD2Show4BPIcon(IconBTans,CALSTRX+6,CALSTRY+9,0,0,0,1);
 268   1                      break;
 269   1                      case REMOTE_KEY_RIGHT:    // dot .
 270   1                              OSD2Show4BPIcon(IconBTdot,CALSTRX+3,CALSTRY+9,0,0,4,1);
 271   1                              twdDelay(1500);
 272   1                              OSD2Show4BPIcon(IconBTdot,CALSTRX+3,CALSTRY+9,0,0,0,1);
 273   1                      break;  
 274   1                      case REMOTE_KEY_RETURN:
 275   1                              OSD2Disable();  
 276   1                      break;          
 277   1              }                                
 278   1              m_cCurreKey=0;   
 279   1      */
 280   1      }
 281          
 282          
 283          void font_draw_string(char *string, unsigned char x, unsigned char y)
 284          {
 285   1              /* write string */      
 286   1              OSD1ShowLine(string,x,y,0,0,1); /* no blink, no scale, menu 1 */
 287   1      
 288   1              /* enable menu */
 289   1              OSD1Enable();
 290   1              OSD1Menu1Enable();
 291   1      }
 292          
 293          void font_put_u4(unsigned char c, unsigned char x, unsigned char y)
 294          {
 295   1              unsigned char string[2];
 296   1              c &= 0x0f;
 297   1              if (c>=10){
 298   2                      string[0] = 'a' + c -10;
 299   2              }else
 300   1                      string[0] = '0' + c;
 301   1              string[1] = 0xfe; /* end of line */
 302   1              OSD1ShowLine(string,x,y,0,0,1); /* no blink, no scale, menu 1 */
C51 COMPILER V8.08   UIDRAW                                                                11/23/2007 07:50:44 PAGE 6   

 303   1      }
 304          
 305          void font_draw_hex_number(unsigned char number, unsigned char x, unsigned char y)
 306          {       
 307   1              /* write string */
 308   1              font_put_u4(number>>4, x, y);
 309   1              font_put_u4(number,    x+1, y);
 310   1      
 311   1              /* enable menu */
 312   1              OSD1Enable();
 313   1              OSD1Menu1Enable();
 314   1      }
 315          
 316          void font_draw_dec_number(unsigned char number, unsigned char x, unsigned char y)
 317          {
 318   1              unsigned char string[4];
 319   1              
 320   1              /* write string */
 321   1              string[0] = number/100+'0';
 322   1              number %= 100;
 323   1              string[1] = number/10+'0';
 324   1              string[2] = number%10+'0';
 325   1              string[3] = 0xfe; /* end of line */
 326   1              OSD1ShowLine(string,x,y,0,0,1); /* no blink, no scale, menu 1 */
 327   1      
 328   1              /* enable menu */
 329   1              OSD1Enable();
 330   1              OSD1Menu1Enable();
 331   1      }
 332          


MODULE INFORMATION:   STATIC OVERLAYABLE
   CODE SIZE        =   1524    ----
   CONSTANT SIZE    =     30    ----
   XDATA SIZE       =   ----      25
   PDATA SIZE       =   ----    ----
   DATA SIZE        =   ----    ----
   IDATA SIZE       =   ----    ----
   BIT SIZE         =   ----    ----
END OF MODULE INFORMATION.


C51 COMPILATION COMPLETE.  0 WARNING(S),  0 ERROR(S)

⌨️ 快捷键说明

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