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

📄 lcd.lst

📁 智能计时计数器 有计两脉冲间隔时间、几脉冲间隔时间、30秒脉冲数等
💻 LST
📖 第 1 页 / 共 3 页
字号:
 266   2       	PR4(0);
 267   2      	}
 268   1       PR0(0);
 269   1       PR3(0);
 270   1       PR0(0xb8|1);
 271   1       PR3(0xb8|1);
 272   1       for(i=0;i<61;i++)
 273   1      	{
 274   2       	PR1(0);
 275   2       	PR4(0);
 276   2      	}
 277   1      }
 278          void clear_down(void)
 279          {
 280   1      char i;
 281   1       PR0(0);
 282   1       PR3(0);
 283   1       PR0(0xb8|2);
 284   1       PR3(0xb8|2);
 285   1       for(i=0;i<61;i++)
 286   1      	{
 287   2       	PR1(0);
 288   2       	PR4(0);
 289   2      	}
 290   1       PR0(0);
 291   1       PR3(0);
 292   1       PR0(0xb8|3);
 293   1       PR3(0xb8|3);
 294   1       for(i=0;i<61;i++)
 295   1      	{
 296   2       	PR1(0);
 297   2       	PR4(0);
 298   2      	}
 299   1      }
 300          //void start(void)
 301          //{
 302          //char show[11]=0;
C51 COMPILER V6.20c  LCD                                                                   07/15/2004 09:46:24 PAGE 6   

 303          
 304          //}
 305          void celiang()
 306             {
 307   1           char show[16];
 308   1           clear_down();
 309   1           show[0]=null;
 310   1           show[1]=null;
 311   1           show[2]=ce;
 312   1           show[3]=liang;
 313   1           show[4]=zhong1;
 314   1           show[5]=42;
 315   1           show[6]=42;
 316   1           show[7]=42;
 317   1           show[8]=42;
 318   1           show[9]=42;
 319   1           show[10]=null;
 320   1           show[11]=null;
 321   1           show[12]=0xff;
 322   1           line_lcd(2,show);
 323   1          // char_byte(0,14,null);
 324   1         }
 325          void menu(char id)
 326          {
 327   1      char show[16];
 328   1      char i;
 329   1      i=id;
 330   1      i=i&0xf0;
 331   1      clear_up();
 332   1      clear_down();
 333   1      switch(i)
 334   1      	{
 335   2      	case 0x00:
 336   2      		        show[0]=1;
 337   2      			show[1]=ji2;
 338   2      			show[2]=shi;
 339   2      			show[3]=null;
 340   2                              show[4]=null;
 341   2                              show[5]=null;
 342   2                              show[6]=null;
 343   2                              show[7]=null;
 344   2                              show[8]=null;
 345   2                              show[9]=null;
 346   2                              show[10]=null;
 347   2                              show[11]=null;
 348   2                              show[12]=31;
 349   2      			show[13]=0xff;
 350   2      			line_lcd(2,show);
 351   2      			break;
 352   2      	case 0x10:
 353   2      			show[0]=2;
 354   2      			show[1]=ping;
 355   2      			show[2]=jun;
 356   2      			show[3]=su;
 357   2                              show[4]=du2;
 358   2                              show[5]=null;
 359   2                              show[6]=null;
 360   2                              show[7]=null;
 361   2                              show[8]=null;
 362   2                              show[9]=null;
 363   2                              show[10]=31;
 364   2      			show[11]=0xff;
C51 COMPILER V6.20c  LCD                                                                   07/15/2004 09:46:24 PAGE 7   

 365   2      			line_lcd(2,show);
 366   2      			break;
 367   2      	case 0x20:
 368   2      			show[0]=3;
 369   2      			show[1]=jia;
 370   2      			show[2]=su;
 371   2      			show[3]=du2;
 372   2                              show[4]=null;
 373   2                              show[5]=null;
 374   2                              show[6]=null;
 375   2                              show[7]=null;
 376   2                              show[8]=null;
 377   2                              show[9]=null;
 378   2                              show[10]=null;
 379   2                              show[11]=31;
 380   2      			show[12]=0xff;
 381   2      			line_lcd(2,show);
 382   2      			break;
 383   2      	case 0x30:
 384   2      			show[0]=4;
 385   2      			show[1]=ji2;
 386   2      			show[2]=shu;
 387   2      			show[3]=null;
 388   2                              show[4]=null;
 389   2                              show[5]=null;
 390   2                              show[6]=null;
 391   2                              show[7]=null;
 392   2                              show[8]=null;
 393   2                              show[9]=null;
 394   2                              show[10]=null;
 395   2                              show[11]=null;
 396   2                              show[12]=31;
 397   2      			show[13]=0xff;
 398   2      			line_lcd(2,show);
 399   2      			break;
 400   2      	case 0x40:
 401   2      			show[0]=5;
 402   2      			show[1]=zi;
 403   2      			show[2]=jian;
 404   2      			show[3]=null;
 405   2                              show[4]=null;
 406   2                              show[5]=null;
 407   2                              show[6]=null;
 408   2                              show[7]=null;
 409   2                              show[8]=null;
 410   2                              show[9]=null;
 411   2                              show[10]=null;
 412   2                              show[11]=null;
 413   2                              show[12]=31;
 414   2      			show[13]=0xff;
 415   2      			line_lcd(2,show);
 416   2      			break;
 417   2                default:  break;
 418   2      	}
 419   1      switch(id)
 420   1      	{
 421   2      	case 0x01:
 422   2      			show[0]=1;
 423   2      			show[1]=36;
 424   2                              show[2]=2;
 425   2                              show[3]=null;
 426   2      			show[4]=duo;
C51 COMPILER V6.20c  LCD                                                                   07/15/2004 09:46:24 PAGE 8   

 427   2                              show[5]=mai;
 428   2      			show[6]=chong;
 429   2                              show[7]=null;
 430   2                              show[8]=null;
 431   2                              show[9]=null;
 432   2                              show[10]=null;
 433   2                              show[11]=32;
 434   2      			show[12]=0xff;
 435   2      			line_lcd(0,show);
 436   2      			break;
 437   2      	case 0x02:
 438   2      			show[0]=1;
 439   2      			show[1]=36;
 440   2      			show[2]=3;
 441   2                              show[3]=null;
 442   2      			show[4]=shuang;
 443   2                              show[5]=dian;
 444   2                              show[6]=men;
 445   2                              show[7]=null;
 446   2                              show[8]=null;
 447   2                              show[9]=null;
 448   2                              show[10]=null;
 449   2                              show[11]=32;
 450   2      			show[12]=0xff;
 451   2      			line_lcd(0,show);
 452   2      			break;
 453   2      	case 0x03:
 454   2      			show[0]=1;
 455   2      			show[1]=36;
 456   2      			show[2]=4;
 457   2                              show[3]=null;
 458   2      			show[4]=dan;
 459   2                              show[5]=bai;
 460   2                              show[6]=zhou;
 461   2                              show[7]=qi1;
 462   2                              show[8]=null;
 463   2                              show[9]=null;
 464   2                              show[10]=32;
 465   2      			show[11]=0xff;
 466   2      			line_lcd(0,show);
 467   2      			break;
 468   2      	case 0x04:
 469   2      			show[0]=1;
 470   2      			show[1]=36;
 471   2      			show[2]=5;
 472   2      			show[3]=null;
 473   2                              show[4]=shi;
 474   2                              show[5]=zhong2;
 475   2                              show[6]=null;
 476   2                              show[7]=null;
 477   2                              show[8]=null;
 478   2                              show[9]=null;
 479   2                              show[10]=null;
 480   2                              show[11]=null;
 481   2                              show[12]=32;
 482   2      			show[13]=0xff;
 483   2      			line_lcd(0,show);
 484   2      			break;
 485   2      	case 0x10:
 486   2      			show[0]=2;
 487   2      			show[1]=36;
 488   2      			show[2]=1;
C51 COMPILER V6.20c  LCD                                                                   07/15/2004 09:46:24 PAGE 9   

 489   2      			show[3]=null;
 490   2                              show[4]=dan;
 491   2                              show[5]=dian;
 492   2                              show[6]=men;
 493   2                              show[7]=null;
 494   2                              show[8]=null;
 495   2                              show[9]=null;
 496   2                              show[10]=null;
 497   2                              show[11]=32;
 498   2      			show[12]=0xff;
 499   2      			line_lcd(0,show);
 500   2      			break;
 501   2      	case 0x11:
 502   2      			show[0]=2;
 503   2      			show[1]=36;
 504   2      			show[2]=2;
 505   2      			show[3]=null;
 506   2                              show[4]=pen;
 507   2                              show[5]=zhuang;
 508   2                              show[6]=null;
 509   2                              show[7]=null;
 510   2                              show[8]=null;
 511   2                              show[9]=null;
 512   2                              show[10]=null;
 513   2                              show[11]=null;
 514   2                              show[12]=32;
 515   2      			show[13]=0xff;
 516   2      			line_lcd(0,show);
 517   2      			break;
 518   2      	case 0x12:
 519   2      			show[0]=2;
 520   2      			show[1]=36;
 521   2      			show[2]=3;
 522   2                              show[3]=null;
 523   2                              show[4]=jiao;
 524   2                              show[5]=su;
 525   2                              show[6]=du2;
 526   2                              show[7]=null;
 527   2                              show[8]=null;
 528   2                              show[9]=null;
 529   2                              show[10]=null;
 530   2      			show[11]=32;
 531   2      			show[12]=0xff;
 532   2      			line_lcd(0,show);
 533   2      			break;
 534   2      	case 0x13:
 535   2      			show[0]=2;
 536   2      			show[1]=36;
 537   2      			show[2]=4;
 538   2                              show[3]=null;
 539   2                              show[4]=zhuan;
 540   2                              show[5]=su;

⌨️ 快捷键说明

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