graphics.h

来自「西红柿的驱动」· C头文件 代码 · 共 27 行

H
27
字号
#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 + =
减小字号Ctrl + -
显示快捷键?