51单片机流水灯

#include "reg52.h"
#include "intrins.h"

typedef unsigned int ui;
typedef unsigned char uc;
#define led P2  //×¢Ò⣡£¡²»¼Ó";"
void delay(ui k)
{
    ui i,j;
    for(i=0;i

此单片机为共阳极

 

 

你可能感兴趣的:(单片机)