用汇编语言编写一个跑马灯音乐程序,用89C51单片机的P1.0到P1.7接八个LED
用汇编语言编写一个跑马灯音乐程序,用89C51单片机的P1.0到P1.7接八个LED
日期:2011-06-27 18:41:19 人气:1
注意字符表未经验证, 请自行调试
#include <AT89X51.H>
#define uchar unsigned char
#define uint unsigned int
const unsigned char design[16]={0x01,0x02,0x04,0x08,0x10,0x20,0x40,0x80,0x40,
0x20,0x10,0x08,0x04,0x02,0x10,0x00};
void delay_1ms(uint