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

📄 vx1828_au.lst

📁 Vx1828点3.5"TFT屏的的源程序
💻 LST
📖 第 1 页 / 共 5 页
字号:
 360   5                                              temp_data[0] = 0x02;   
 361   5                                      shi_sub_write(VX1828,0xC7,0x00,&temp_data[0]);
C51 COMPILER V7.50   VX1828_AU                                                             01/17/2006 21:30:46 PAGE 7   

 362   5                                              #endif
 363   5                                              #if 0
                                              temp_data[0] = 0x4B;   
                                              shi_sub_write(VX1828,0xD8,0x00,&temp_data[0]);
                                              temp_data[0] = 0x5D;   
                                              shi_sub_write(VX1828,0xD7,0x00,&temp_data[0]);
                                              temp_data[0] = 0x05;   
                                              shi_sub_write(VX1828,0xD6,0x00,&temp_data[0]);
                                                      #endif
 371   5                                              //pal_parameter();
 372   5                                      
 373   5                                      //      temp_data[0] =0x80;
 374   5                                      //      shi_sub_write(VX1828,0x1E,0x00,&temp_data[0]);
 375   5                                      //      temp_data[0] =0x5A;
 376   5                                      //      shi_sub_write(VX1828,0x1F,0x00,&temp_data[0]);
 377   5                                      //      temp_data[0] =0x87;
 378   5                                      //      shi_sub_write(VX1828,0x20,0x00,&temp_data[0]);
 379   5                                              video_format = 0x01;            // set the format of the present video .?                       
 380   5                                              break;
 381   5                              case 2: // PAL M
 382   5                                      #if _debug
 383   5                                      printf("the video is PAL-M \n");
 384   5                                              
 385   5                                              #endif
 386   5                                              //temp_data[0] = hposPM_sel;    // Address 0x3c
 387   5                                              //temp_data[1] = vposPM_sel;    // Address 0x3d
 388   5                                              //temp_data[2] = 0x0C;          // Address 0x3e
 389   5                                              //temp_data[3] = 0x24;          // Address 0x3f
 390   5                                              //temp_data[4] = 0x28;          // Address 0x40
 391   5                                              //temp_data[5] = 0x66;          // Address 0x41
 392   5                                              //shi_sub_write(VX1828,0x3c,0x05,&temp_data[0]);
 393   5                                              #if 0
                                                      
                                                      temp_data[0] = 0x78;   
                                              shi_sub_write(VX1828,0x1c,0x00,&temp_data[0]);
                                                      #endif
 398   5                                              DelayXms(0x80);
 399   5                                              #if LG
                                                      temp_data[0] = 0x16;   
                                              shi_sub_write(VX1828,0xC2,0x00,&temp_data[0]);// set TC6 |-|         STV_ON       |
                                                      temp_data[0] = 0x79;   
                                              shi_sub_write(VX1828,0xa6,0x00,&temp_data[0]);
                                                      temp_data[0] = 0x00;   
                                              shi_sub_write(VX1828,0xa5,0x00,&temp_data[0]);
                                                      temp_data[0] = 0x02;   
                                              shi_sub_write(VX1828,0xC7,0x00,&temp_data[0]);// set TC5 | OEV_MODE[3:0]|-|-|ZOOM_MO
             -DE[1:0]|
                                                      temp_data[0] =0xCD;
                                              shi_sub_write(VX1828,0x3c,0x00,&temp_data[0]);// set  OS9   | HSHIFT  |
                                                      temp_data[0] =0x03;
                                              shi_sub_write(VX1828,0x3d,0x00,&temp_data[0]);
                                                      temp_data[0] =0x0c;
                                              shi_sub_write(VX1828,0xc0,0x00,&temp_data[0]);// set  OS9   | HSHIFT  |
                                                      #endif
 415   5                                              #if AU
 416   5                                              temp_data[0] = 0x02;   
 417   5                                      shi_sub_write(VX1828,0xC7,0x00,&temp_data[0]);
 418   5                                              #endif
 419   5                                              #if 0
                                                      DelayXms(0xff);DelayXms(0xff);DelayXms(0xff);
                                                      temp_data[0] = 0x38;   
                                              shi_sub_write(VX1828,0x1c,0x00,&temp_data[0]);
C51 COMPILER V7.50   VX1828_AU                                                             01/17/2006 21:30:46 PAGE 8   

                                                      #endif
 424   5                                              #if 0
                                              temp_data[0] = 0x4B;   
                                              shi_sub_write(VX1828,0xD8,0x00,&temp_data[0]);
                                              temp_data[0] = 0x5D;   
                                              shi_sub_write(VX1828,0xD7,0x00,&temp_data[0]);
                                              temp_data[0] = 0x05;   
                                              shi_sub_write(VX1828,0xD6,0x00,&temp_data[0]);
                                                      #endif
 432   5                                              //pal_parameter();
 433   5                                      
 434   5                                              video_format = 0x02;            // set the patten of the present Video .?  
 435   5      
 436   5                                              //      osd_show(0x0A,0x04,&PALM);
 437   5                                      break;
 438   5                              case 3: // NTSC
 439   5                                      #if _debug
 440   5                                      printf("the video is NTSC \n");
 441   5                                              
 442   5                                              #endif
 443   5                                              //temp_data[0] = hposNS_sel;    // Address 0x3c
 444   5                                              //temp_data[1] = vposNS_sel;    // Address 0x3d
 445   5                                              //temp_data[2] = 0x10;          // Address 0x3e
 446   5                                              //temp_data[3] = 0x2A;          // Address 0x3f
 447   5                                              //temp_data[4] = 0x2A;          // Address 0x40
 448   5                                              //temp_data[5] = 0x60;          // Address 0x41
 449   5                                              //shi_sub_write(VX1828,0x3c,0x05,&temp_data[0]);
 450   5                                              #if 0
                                                      
                                                      temp_data[0] = 0x78;   
                                              shi_sub_write(VX1828,0x1c,0x00,&temp_data[0]);
                                                      #endif
 455   5                                              DelayXms(0x80);
 456   5                                              #if LG
                                                      temp_data[0] = 0x12;   
                                              shi_sub_write(VX1828,0xC2,0x00,&temp_data[0]);                                  
                                                      temp_data[0] = 0x7b;                                    
                                              shi_sub_write(VX1828,0xa6,0x00,&temp_data[0]);
                                                      temp_data[0] = 0x00; 
                                                      
                                              shi_sub_write(VX1828,0xa5,0x00,&temp_data[0]);                                  
                                                      temp_data[0] = 0x00;   
                                              shi_sub_write(VX1828,0xC7,0x00,&temp_data[0]);
                                                      temp_data[0] =0xCd;
                                              shi_sub_write(VX1828,0x3c,0x00,&temp_data[0]);                          
                                                      temp_data[0] =0x00;
                                              shi_sub_write(VX1828,0x3d,0x00,&temp_data[0]);// set  OS9   | HSHIFT  |
                                                      #endif
 471   5                                              #if AU
 472   5                                              temp_data[0] = 0x00;   
 473   5                                      shi_sub_write(VX1828,0xC7,0x00,&temp_data[0]);
 474   5                                              #endif
 475   5                                              //temp_data[0] =0xC6;
 476   5                                              //shi_sub_write(VX1828,0xc0,0x00,&temp_data[0]);// set  OS9   | HSHIFT  |
 477   5                                              //ntsc_parameter();
 478   5                                              #if 0 
                                                      DelayXms(0xff);DelayXms(0xff);DelayXms(0xff);
                                                      temp_data[0] = 0x38;   
                                              shi_sub_write(VX1828,0x1c,0x00,&temp_data[0]);
                                                      #endif
 483   5                                              video_format = 0x03;            // set the patten of the present Video .?     
 484   5                                              
C51 COMPILER V7.50   VX1828_AU                                                             01/17/2006 21:30:46 PAGE 9   

 485   5                                              break;
 486   5                              default:
 487   5                                              break;
 488   5                              }                               
 489   4                              modestatus=tempmode;
 490   4                      }
 491   3                              //BSTctrl = 0;   DelayXms(0x10);
 492   3                      //INVctrl = 0;     
 493   3                      }  
 494   2      
 495   2                      #endif   
 496   2      //=============================================================
 497   2      
 498   2      //===================== menu Button =============================
 499   2      //=============================================================
 500   2                      if (power_flag)
 501   2                      {       
 502   3                              time_setup_process();
 503   3                              
 504   3                      //======when topmenu hasn't appear , press right or left .==============
 505   3                      if (!topmenu_flag&&irvoladd_flag)
 506   3                      {
 507   4                              
 508   4                              irvoladd_flag=0;osd_timer=0;TR0=0;
 509   4                                              #if _debug
 510   4                              printf("!topmenu_flag&&irvoladd_flag\n");
 511   4                                              #endif
 512   4                                      top_sel=1;
 513   4                                      time_sel=1;
 514   4                                      britmenu_flag  = 0;
 515   4                                       timemenu_flag=0;
 516   4                                      
 517   4                              if (volshow_flag == 0){
 518   5                                                      initvol_menu();
 519   5                                                      #if _debug
 520   5                                                              printf("initvolmenu() \n");     
 521   5                                                      #endif                                  
 522   5                                                      volshow_flag = 1; 
 523   5                                      }
 524   4                                      if(volume_sel>=0x0f)    {volume_sel=0x0e;}                              
 525   4                              if (volume_sel <0x0f)
 526   4                              {
 527   5                                              
 528   5                                              volume_sel++;
 529   5                                              Vol_menu(volume_sel);
 530   5                                              //shi_sub_write(PT2313L,volume_sel,0x00,&volume_sel);
 531   5                                      set_audio_volume(volume_sel);
 532   5                                              DelayXms(0x80);         // avoid error repress 
 533   5                                      
 534   5                                      shi_sub_write(EEPROM,0xF6,0x00,&volume_sel);
 535   5                                              DelayXms(0x80);
 536   5                                      shi_sub_read(EEPROM,0xF6,0,&tmp);
 537   5                                              #if _debug                                      
 538   5                                              if(tmp==volume_sel){
 539   6                                                      printf("save volume_sel to 0x06 ok ");
 540   6                                                      }
 541   5                                              else{
 542   6                                                      printf("save volume_sel to 0x06 bad");
 543   6                                                      }

⌨️ 快捷键说明

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