摘要: #include <reg51.h> void Init(); void Send(unsigned char* pstr,unsigned int len); void main(){ Init(); while(1){ } } void Init(){ SCON=0x50; //设置为工作方式1 阅读全文
posted @ 2016-02-16 16:00 冰糖胡芦娃哈哈 阅读(418) 评论(0) 推荐(0) 编辑
摘要: #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( 阅读全文
posted @ 2016-02-16 15:51 冰糖胡芦娃哈哈 阅读(326) 评论(0) 推荐(0) 编辑