摘要:
一、LED灯点亮 根据51开发板原理图可知P2口是控制LED灯的,1为高电平(不亮),0为低电平(亮) LED亮起代码 include <REGX52.H> void main(){ while(1) { P2=0x00; } } LED流水灯 include <REGX52.H> unsigned 阅读全文
|
摘要:
一、LED灯点亮 根据51开发板原理图可知P2口是控制LED灯的,1为高电平(不亮),0为低电平(亮) LED亮起代码 include <REGX52.H> void main(){ while(1) { P2=0x00; } } LED流水灯 include <REGX52.H> unsigned 阅读全文
|