#include <REGX51.H>
int0()interrupt 0//中断函数
{
P0=~P0;//led取反
}
main()
{
//一共有5个中断
IT0=1
中断函数实现按键控制LED灯亮灭
最新推荐文章于 2024-04-20 21:57:19 发布
#include <REGX51.H>
int0()interrupt 0//中断函数
{
P0=~P0;//led取反
}
main()
{
//一共有5个中断
IT0=1