📄 main.c
字号:
extern void delay(unsigned int ms);
extern void lcd_init();
extern void display(unsigned char state);
extern void full_clr(unsigned char state);
extern void line(unsigned int x0,unsigned int y0,unsigned int xt,unsigned int yt,unsigned char m);
extern void dot1(unsigned char x,unsigned char y, unsigned char m);
extern void pane(unsigned int x1,unsigned int y1,unsigned int x2,unsigned int y2);
extern void circle(unsigned int Ox,unsigned char Oy,unsigned char Rx,unsigned char m);
extern void reverseimg1();
void main(void)
{ lcd_init();
while(1)
{
full_clr(0xff); //全显
delay(3000);
full_clr(0x55); // 列
delay(3000);
display(0xff); //行
delay(3000);
display(0xff);
display(0x55); // 方格
delay(3000);
full_clr(0x00); //全显
delay(3000);
dot1(120,64,1); //点
delay(3000);
line(10,10,90,10,1); // 线
delay(3000);
pane(0,0,239,127); // 方框
delay(3000);
circle(120,64,50,1); //圆
//delay(3);
circle(120,64,45,1);
//delay(3);
circle(120,64,40,1);
//delay(3);
circle(120,64,35,1);
//delay(3);
circle(120,64,30,1);
//delay(3);
circle(120,64,25,1);
//delay(3);
circle(120,64,20,1);
//delay(3);
circle(120,64,15,1);
//delay(3);
circle(120,64,10,1);
delay(5000);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -