摘要:
#include <reg51.h> void Init(); void Send(unsigned char* pstr,unsigned int len); void main(){ Init(); while(1){ } } void Init(){ SCON=0x50; //设置为工作方式1 阅读全文
摘要:
#include <reg51.h> #define IO_KEY P1 void Delay(unsigned int c); unsigned char KeyScan(); void main(){ unsigned char key = 0; while(1){ key = KeyScan( 阅读全文