Home > other >  51 single chip microcomputer, electric light LED (c)
51 single chip microcomputer, electric light LED (c)

Time:10-20

Application:
#include

Sbit LED=P0 ^ 0;//use P0.0 mouth leds
Sbit ADDR0 P1=^ 0;
P1 sbit ADDR1=^ 1;
Sbit ADDR2=p ^ 2;
Sbit ADDR3 P1=^ 3;
Sbit ENLED=P1 ^ 4;

Void main ()
{
ENLED=0;
ADDR3=1;
ADDR2=1;
ADDR1=1;
ADDR0=0;
LED=0;
while(1);
}
  • Related