main.c

来自「周立功开发板」· C语言 代码 · 共 21 行

C
21
字号
#include "config.h"
#include "uart.h"
#include "LED.h"
#include "KeyBoard.h"
#include "Timer.h"

int main(void)
{
    UART0Init(9600);    //初使化
    Timer0_Init(1,0xff);
    KEYBInit();
    LEDInit();
    
    UART0SendString("hello");   //通过串口0发送字符串"hell0"
    
    while(1)
    {
       LEDPrint(UART0RecevieByte());    //显示从串口接收到的数据
    }
    return 0;
}

⌨️ 快捷键说明

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