摘要:
LED流水灯【单向】#include <reg52.h>sbit LED1 = P1^1;sbit LED7 = P1^7;void delay(unsigned int s);// code: 定义在ROM,常量放在ROM// 否则定义在RAM,尽量节省RAM。/*unsigned char code table[] = { 0xfe, 0xfd, 0xfb, 0xf7, 0xef, 0xdf, 0xbf, 0x7f};*/main(){ unsigned char i=0; // 0~65535 unsigned char j; LED7 = 0; // 点亮... 阅读全文