close




#include<reg51.h>unsignedcharcodeLED_Array[]={0x18,0x24,0x42,0x81,0x81,0x42,0x24,0x18};voiddelay(unsigneintdly){while(dly>0)dly--;}voidmain(void){while(1){unsignedcharcount;for(count=0;count<=7;count ){P1=LED_Array[count];delay(30000);}}}LED正端接8051的PORT1







arrow
arrow
    全站熱搜

    pyoyo01 發表在 痞客邦 留言(0) 人氣()