📄 graphics.h
字号:
#ifndef __GRAPHICS__
#define __GRAPHICS__
#include "tl0324.h"
// --------------------------- Functions Declaration ---------------------------
// Display an image on LCD upleft corner
void disp_upleft(uint8 code *ptrImage, uint8 width, uint8 height);
// Display an image on LCD screen center
void disp_center(uint8 code *ptrImage, uint8 width, uint8 height);
// Draw a point at specific coordinate
void Point(uint8 Xpoint, uint8 Ypoint);
// Draw a straint line
void Line(uint8 X1, uint8 Y1, uint8 X2, uint8 Y2);
// Draw a horizontal line
void LineH(uint8 X0, uint8 Y0, uint8 Length);
// Draw a Virtical line
void LineV(uint8 X0, uint8 Y0, uint8 Height);
// Draw a fullscreen rectangle
void RectFullscreen(void);
// Draw a rectangle on LCD screen center
void Rect(uint8 width, uint8 height);
// -----------------------------------------------------------------------------
#include "graphics.c"
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -