標(biāo)題:
AVR單片機(jī)I/O口位操作
[打印本頁]
作者:
xiaos
時(shí)間:
2015-4-3 23:34
標(biāo)題:
AVR單片機(jī)I/O口位操作
#define LED_SET PORTD |= BIT(5) //位置高
#define LED_CLR PORTD &= ~BIT(5) //位置低
#define LED_COM PORTD ^= BIT(5) //位取反
#define LED_R PIND & BIT(5) //位讀取
歡迎光臨 (http://www.torrancerestoration.com/bbs/)
Powered by Discuz! X3.1