test.c
来自「微处理器学习板显示的模范设计的8位单板计算机。更多的周边和容易适应是一个专用控制」· C语言 代码 · 共 19 行
C
19 行
#include <stdio.h>
#include <sbc51.h>
void main(void)
{
InitLCD(); //Initializes the LCD Module.
InitSerial(); //Initializes the serial port of 8051 in 9600,8n1.
while(1)
{
LocateLCD(1,1); // Sets the cursor position to Line 1,Pos 1.
WriteLCD("Prof. Wichit Sirichote"); //writes string on LCD.
printf("\n\t\tProf. Wichit Sirichote"); //Writes string on PC serial port.
ScrollLCD('r','f',1); //Scrolls sting to right side,fast, 1 time.
delay(1000); //Produces the delay of 1000 msec.
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?