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

📄 pattern_show.lst

📁 可以对UC1697V的进行连续烧录
💻 LST
📖 第 1 页 / 共 3 页
字号:
 201   4                                                      ColorBAR_Data_H=RGB_Pink_H;
 202   4                                                      ColorBAR_Data_L=RGB_Pink_L;
 203   4                                                      break;
 204   4                                      case 5:
 205   4                                                      ColorBAR_Data_H=RGB_LightBlue_H;
 206   4                                                      ColorBAR_Data_L=RGB_LightBlue_L;
 207   4                                                      break;
 208   4                                      case 6:
 209   4                                                      ColorBAR_Data_H=RGB_Red_H;
 210   4                                                      ColorBAR_Data_L=RGB_Red_L;
 211   4                                                      break;
 212   4                                      case 7:
 213   4                                          ColorBAR_Data_H=RGB_Yellow_H;
 214   4                                          ColorBAR_Data_L=RGB_Yellow_L;
 215   4                                                      break;
 216   4                                      default:
 217   4                                                      break;
 218   4                              }
 219   3      
 220   3                              for(j=0;j<16;j++)
 221   3                              {
 222   4                                      WriteState_Main(ColorBAR_Data_H,ColorBAR_Data_L);
 223   4                              }
 224   3                      }
 225   2      
 226   2              }
 227   1      }
 228          
 229          void Gray_Pattern_Main_Show()
 230          {
 231   1              tByte i,j,k;
 232   1          tByte x,y;
 233   1      
 234   1              Window_Main();
 235   1      
 236   1      //==========================================================
 237   1      //                                              16 Level Gray Black
 238   1      //==========================================================
 239   1              for(i=0;i<64;i++)
 240   1          {
C51 COMPILER V8.02   PATTERN_SHOW                                                          07/28/2008 17:49:19 PAGE 5   

 241   2              //      for(j=0;j<1;j++)
 242   2      //              {
 243   2      //                      WriteState_Main(0x00,0x00);
 244   2      //              }
 245   2      
 246   2                      x=0;
 247   2                      y=1;
 248   2                      for(j=0;j<16;j++)
 249   2              {   
 250   3                      for(k=0;k<8;k++)
 251   3                              {
 252   4                                      WriteState_Main(Gray[x],Gray[y]);
 253   4                              }
 254   3                              x=x+2;
 255   3                      y=y+2;
 256   3              }
 257   2      
 258   2      //              for(j=0;j<1;j++)
 259   2      //              {
 260   2      //                      WriteState_Main(0xff,0xff);
 261   2      //              }
 262   2          }
 263   1      //==========================================================
 264   1      //                                              1st Black
 265   1      //==========================================================
 266   1              for(i=64;i<77;i++)
 267   1              {
 268   2                      for(j=0;j<64;j++)
 269   2                      {
 270   3                              WriteState_Main(0xff,0xff);     
 271   3                      }
 272   2                      for(j=64;j<128;j++)
 273   2                      {
 274   3                              WriteState_Main(0x00,0x00);     
 275   3                      }
 276   2              }
 277   1      //==========================================================
 278   1      //                                              2nd Black
 279   1      //==========================================================
 280   1              for(i=77;i<116;i++)
 281   1              {
 282   2                      for(j=0;j<11;j++)
 283   2                      {
 284   3                              WriteState_Main(0xff,0xff);     
 285   3                      }
 286   2                      for(j=11;j<50;j++)
 287   2                      {
 288   3                              WriteState_Main(0xef,0x7d);     
 289   3                      }
 290   2                      for(j=50;j<64;j++)
 291   2                      {
 292   3                              WriteState_Main(0xff,0xff);
 293   3                      }
 294   2                      for(j=64;j<76;j++)
 295   2                      {
 296   3                              WriteState_Main(0x00,0x00);     
 297   3                      }
 298   2                      for(j=76;j<115;j++)
 299   2                      {
 300   3                              WriteState_Main(0x10,0x82);     
 301   3                      }
 302   2                      for(j=115;j<128;j++)
C51 COMPILER V8.02   PATTERN_SHOW                                                          07/28/2008 17:49:19 PAGE 6   

 303   2                      {
 304   3                              WriteState_Main(0x00,0x00);
 305   3                      }
 306   2              }
 307   1      //==========================================================
 308   1      //                                              3st Black
 309   1      //==========================================================
 310   1              for(i=116;i<128;i++)
 311   1              {
 312   2                      for(j=0;j<64;j++)
 313   2                      {
 314   3                              WriteState_Main(0xff,0xff);     
 315   3                      }
 316   2                      for(j=64;j<128;j++)
 317   2                      {
 318   3                              WriteState_Main(0x00,0x00);     
 319   3                      }
 320   2              }
 321   1      }
 322          
 323          void Number_Pattern_Main_Show()
 324          {
 325   1              tByte horizontal,vertical,loop;
 326   1              tWord arry_x,arry_y,arry_block=0;
 327   1      
 328   1              Window_Main();
 329   1      
 330   1      //==========================================================
 331   1      //                                              1st Number Block 
 332   1      //==========================================================
 333   1              for (vertical=0;vertical<32;vertical++)
 334   1              {
 335   2                      arry_block=0x20*vertical;
 336   2                      for(loop=0;loop<8;loop++)
 337   2                      {
 338   3                              arry_x=0+arry_block;
 339   3                              arry_y=1+arry_block;    
 340   3                              for(horizontal=0;horizontal<16;horizontal++)
 341   3                              {
 342   4                                      WriteState_Main(Number[arry_x],Number[arry_y]);
 343   4                                      arry_x=arry_x+2;
 344   4                                      arry_y=arry_y+2;
 345   4                              }
 346   3                      }
 347   2              //      for(horizontal=0;horizontal<2;horizontal++)
 348   2              //      {
 349   2              //              WriteState_Main(0xff,0xff);
 350   2              //      }
 351   2              }
 352   1      //==========================================================
 353   1      //                                              2nd Number Block 
 354   1      //==========================================================
 355   1              for (vertical=0;vertical<32;vertical++)
 356   1              {
 357   2                      arry_block=0x20*vertical;
 358   2                      for(loop=0;loop<8;loop++)
 359   2                      {
 360   3                              if(loop<6)
 361   3                              {
 362   4                                      arry_x=0+arry_block;
 363   4                                      arry_y=1+arry_block;    
 364   4                                      for(horizontal=0;horizontal<16;horizontal++)
C51 COMPILER V8.02   PATTERN_SHOW                                                          07/28/2008 17:49:19 PAGE 7   

 365   4                                      {
 366   5                                              WriteState_Main(Number[arry_x],Number[arry_y]);
 367   5                                              arry_x=arry_x+2;
 368   5                                              arry_y=arry_y+2;
 369   5                                      }
 370   4                              }
 371   3                              else if(6<loop<8)
 372   3                              {
 373   4                                      for(horizontal=0;horizontal<16;horizontal++)
 374   4                                      {
 375   5                                              WriteState_Main(0xff,0xff);
 376   5                                      }
 377   4                              }
 378   3                      }
 379   2              //      for(horizontal=0;horizontal<2;horizontal++)
 380   2              //      {
 381   2              //              WriteState_Main(0xff,0xff);
 382   2              //      }
 383   2              }
 384   1      //==========================================================
 385   1      //                                              3st Number Block 
 386   1      //==========================================================
 387   1              for (vertical=0;vertical<32;vertical++)
 388   1              {
 389   2                      arry_block=0x20*vertical;
 390   2                      for(loop=0;loop<8;loop++)
 391   2                      {
 392   3                              if(loop<4)
 393   3                              {
 394   4                                      arry_x=0+arry_block;
 395   4                                      arry_y=1+arry_block;    
 396   4                                      for(horizontal=0;horizontal<16;horizontal++)
 397   4                                      {
 398   5                                              WriteState_Main(Number[arry_x],Number[arry_y]);
 399   5                                              arry_x=arry_x+2;
 400   5                                              arry_y=arry_y+2;
 401   5                                      }
 402   4                              }
 403   3                              else if(4<loop<8)
 404   3                              {
 405   4                                      for(horizontal=0;horizontal<16;horizontal++)
 406   4                                      {
 407   5                                              WriteState_Main(0xff,0xff);
 408   5                                      }
 409   4                              }
 410   3                      }

⌨️ 快捷键说明

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