123

#include "sys.h"
#include "delay.h"
#include "usart.h"
#include "led.h"

int main(void) {
    delay_init();        //延时函数初始化      
    LED_Init();              //初始化与LED连接的硬件接口
    while(1) {
        LED0=0;
        delay_ms(300);     //延时300ms
        LED0=1;
        delay_ms(300);    //延时300ms
    }
}

123

Last modification:December 10th, 2019 at 11:49 am