update.c
来自「AVRGCC编写的很好用的串口通讯源程序」· C语言 代码 · 共 29 行
C
29 行
#include "uart.h"
#include "display.h"
void
UpdateRun(void)
{
unsigned char c;
static unsigned char return_received;
while(1)
{
c = UartGetc();
if ('\r' == c)
{
update_buffer[update_count] = 0;
DisplayUpdate(update_text);
}
else
{
update_buffer[update_count] = c;
if (++update_count == LED_BUFFER_SIZE)
{
update_count = 0;
}
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?