📄 main.c
字号:
#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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -