portio.c

来自「The collection of AVR source code in C.」· C语言 代码 · 共 18 行

C
18
字号
// PortIO.c
#include <avr/io.h>

int main (void)
{
    // Init port pins
	DDRB = 0x00; // set port B for input
 	DDRD = 0xFF; // set port D for output	

	while(1)
	{
		PORTD = PINB;
	}
}
		
		

	

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?