標(biāo)題: 使led每隔一秒發(fā)光、關(guān)閉一次 [打印本頁(yè)]

作者: ppo    時(shí)間: 2016-10-10 22:29
標(biāo)題: 使led每隔一秒發(fā)光、關(guān)閉一次
#include<BoeBot.h>
#include<uart.h>
int main(void)
{
uart_Init();
while(1)
{P1_0=1;
delay_nms(500);
P1_0=0;
delay_nms(500);
}
}





歡迎光臨 (http://www.torrancerestoration.com/bbs/) Powered by Discuz! X3.1