# include # include # define uchar unsigned char # define uint unsigned intu char CODE DSY _ CODE[]= { 0xc 0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90,0x88,0x83,0xc6,0xa1,0x86,0x8e,0x ff };void delay ms(uint x){ uchar t;而(x-)for(t = 120;t & gt0;t-);} void main(){ uchar I = 0;P0 = 0x00while(1){ P0 = ~ DSY _碼[I];I =(I+1)% 16;/*顯示0-f */delay MAS(400);}}
上一篇:金剛1024和1024s的區別下一篇:如何編程讀取oracle的dmp文件中的表數據