STM8-利用外部中斷編寫兩個(gè)按鍵控制燈的亮滅
#include"stm8s.h"
#include "stm8s_exti.h"
#define uchar unsigned char
#define uint unsigned int
#define ulong unsigned long
void delay(uint i)
{
}
void main()
{
}
#pragma vector=6//端口B中斷編號(hào)為4,4+2=6
__interrupt void EXIT_PORTB_IRQHander(void)
{
}
評(píng)論