TA的每日心情 | 开心 2022-10-10 06:47 |
---|
签到天数: 1313 天 连续签到: 3 天 [LV.10]以坛为家III
|
楼主 |
发表于 2015-5-22 10:24:25
|
显示全部楼层
#include <asf.h>
#define LED IOPORT_CREATE_PIN(PORTB, 5)
int main (void)
{
// Insert system clock initialization code here (sysclk_init()).
board_init();
delay_init();
ioport_init();
ioport_set_pin_dir(LED, IOPORT_DIR_OUTPUT);
while(1)
{
ioport_toggle_pin_level(LED);
delay_ms(500);
}
// Insert application code here, after the board has been initialized.
// Insert application code here, after the board has been initialized.
}
编译效果图
|
|