?? 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’在坐標(biāo):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)
{
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -