2011
09-24
09-24
我的第一个单片机程序 NEW
实现8个流水灯,并且伴有蜂鸣器,循环3次结束闪烁。#include<reg52.h> #include <intrins.h>#define uint unsigned int#define uchar unsigned charuchar temp,num,num1,ed;sbit beep=P2^3;void delay(uint);void main() {num=0;temp=0xfe;ed=0xff;while(num<=24)nu...
Read More >