📄 define.h
字号:
#define uchar unsigned char
#define uint unsigned int
#define MAX_COUNT 20
sfr PORT =0x80; //PORT=P0
sbit RS =P2^5;
sbit R_W =P2^6;
sbit E =P2^7;
sbit LEDY =P2^2; // LED will light when give low power
sbit LEDG =P2^3;
sbit LEDR =P2^4;
sbit key_3 =P3^3; //key==0 then it will be work
sbit key_4 =P3^4;
sbit key_5 =P3^5;
uint str[5];
uchar forreceive;
uchar f1,f2;
uchar sign;
uint all;
uchar n1,n2,n3,n4,n5;
//LCD
uchar code welcome[]={" This is LCD module Welcom to you... "};
uchar code line1[]={"Model: Atmel24C00"};
uchar code line2[]={"Pass:0 Fail:0 "};
uchar code line3[]={"Check Sum:0000 "};
uchar code line4[]={"Total Num:00000 "};
//------------自定义图案------------//
uchar code CGROM[]={0x1f,0x1f,0x1f,0x1f,0x1f,0x1f,0x1f,0x1f, //全显
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, //空白
0x1f,0x00,0x1f,0x00,0x1f,0x00,0x1f,0x00, //横(1,3,5,7)
0x00,0x1f,0x00,0x1f,0x00,0x1f,0x00,0x1f, //横(2,4,6,8)
0x15,0x15,0x15,0x15,0x15,0x15,0x15,0x15, //竖(1,3,5)
0x0a,0x0a,0x0a,0x0a,0x0a,0x0a,0x0a,0x0a, //竖(2,4)
0x15,0x0a,0x15,0x0a,0x15,0x0a,0x15,0x0a, //点
0x0a,0x15,0x0a,0x15,0x0a,0x15,0x0a,0x15,}; //点
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -