·上一文章:利用BCD白光LED驱动器解决方案
·下一文章:升压IC可提升白光LED的电池电压
#include <reg52.h>
#include<instrins.h>
#define uchar unsigned char
#define uint unsigned int
uchar code led[]={0xfe,0xfb,0xfd ,0xf7,0xef,0xbf,0xdf,0x
delay(uint z)
{
uint x,y;
for(x=z;x>0;x--)
for(y=110;y>0;y--);
}
main( )
{
uint i;
while(1)
{
P2=led[];
delay(500);
_crol_(led,1);
}
}