📄 main.c
字号:
#include <htc.h>
#include <conio.h>
#include <string.h>
#include "sci.h"
const char* const text = "Hello world.\n ";
void
main(void)
{
unsigned int i,k;
char str;
// serial_isr();
sci_Init(BRATE,NINEBITS);
k=strlen(text);
for(i=0;i<k;i++)
{
str=*(text+i);
sci_PutByte(str);
}
asm("clrwdt");
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -