📄 main.c
字号:
//硬件连接;
//sbit LCD_EP = P2^0;
//sbit LCD_RW = P2^1;
//sbit LCD_A0 = P2^2;
//DB0~DB7:P10~P17
#include"SPLC501User.h"
#include"mychar.h"
//#include"delayms.h"
#define Clear_Watchdog() *(unsigned *)0x7012=1; // 清看门狗
int main(void)
{
LCD501_Init(0x00);
// LCD501_Line(2,2,60,2);
// LCD501_Rectangle(0,0,60,60,0); //画矩形框
// LCD501_PutChar(24,5,'A'); //显示ASCII字符’A’在坐标:24,5
//LCD501_Bitmap(0,0,(unsigned int*)encoding_00);
LCD501_PutPixel(63,31);
LCD501_PutPixel(62,32);
LCD501_PutPixel(61,33);
LCD501_PutPixel(60,34);
LCD501_PutPixel(59,35);
LCD501_PutPixel(58,36);
LCD501_PutPixel(57,37);
LCD501_PutPixel(56,38);
delay(1500);
LCD501_PutPixel(63,31);
LCD501_PutPixel(64,32);
LCD501_PutPixel(65,33);
LCD501_PutPixel(66,34);
LCD501_PutPixel(67,35);
LCD501_PutPixel(68,36);
LCD501_PutPixel(69,37);
LCD501_PutPixel(70,38);
delay(1500);
LCD501_Line(64,27,58,27);
while(1)
{
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -