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