⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 graphics.h

📁 笔段型TN LCM测试
💻 H
字号:
// --------------------- Header file for graphics.c ----------------------------
#ifndef __GRAPHICS__
#define __GRAPHICS__

// Information for drawing a rectangle
struct RectInfo
{
	uint8 X0,Y0,X1,Y1;
};

// --------------------------- Functions Declaration ---------------------------
// Display a picture on the specific position of the Screen
void disp_image(uint8 code *ptrImage, uint8 StartP, StartC);
// Display an image on LCD upleft corner
void disp_upleft(uint8 code *ptrImage);
// Display an image on LCD screen center
void disp_center(uint8 code *ptrImage);
// Draw a rectangle using the two given points
void disp_frame(uint8 X0,Y0,X1,Y1);
#ifdef LCD_8BIT
	// 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 table with specific rows and cols
	void Table(uint8 Rows, Cols, uint8 width, height);
	// Scan Vertical line
	void ScanV(uint8 Tscan);
	// Scan Horizontal line
	void ScanH(uint8 Tscan);
	// Draw a Rectangle
	void Rectangle(struct RectInfo Points);
	// Show x frames on the screen
	void frameShow(uint8 xframes);
#endif
// Draw a fullscreen rectangle
void RectFullscreen(void);
// -----------------------------------------------------------------------------

#include "graphics.c"
#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -