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

📄 displib.h

📁 其于ARM的USB操作,控制芯片为CH375实现操作.以及其他功能.包括AC,串口操作.
💻 H
字号:
#ifndef DISPLIB_H_
#define DISPLIB_H_

#include "def.h"

class CDispLib
{
public:
	CDispLib();
	~CDispLib();
public:
	void SetHz( U32* p );
	void SetAsc( U32* p );
	void SetXSize( U32 size );
	void SetYSize( U32 size );
	
	void SetDispBuf( U8* p );
	void ClrScr();
	void SetPixel(S32 x, S32 y,S32 col=0);
	
	void CDispLib::DispAsc(S8 asc, S32 x, S32 y, S32 col=1 );
	void CDispLib::DispHz16(S8 *src, S32 x, S32 y, S32 col=1);
	void DispStr(S8* str,S32 x,S32 y,S32 col=1);
	void DispNumb( S32 dat,S32 x,S32 y,S32 iBefore,S32 iBack,S32 col=1 );
	void DispHex( U8 dat, S32 x, S32 y, S32 col=1 );
	void DrawPoly(S32* xy,U32 count,U32 col=1);
	void DrawEllipse(S32 x1,S32 y1,S32 x2,S32 y2,S32 col=1);
	void DrawCicle(S32 x,S32 y,S32 r,U32 col=1);
	void DrawRect(S32 x1,S32 y1,S32 x2,S32 y2,S32 col=2);
	void DrawLine(S32 x1,S32 y1,S32 x2,S32 y2,S32 col=2);
	void DrawPoint( S32 x, S32 y, S32 col, S32 width);

	void ClrRect( S32 x1, S32 y1, S32 x2, S32 y2 );

public:

private:

	U32* pHz16;
	U32* pAsc16;
	U32 iXSize;
	U32 iYSize;
	U8* pDispBuf;
	S8  pBuf[30];
};

#endif //DISPLIB_H_

⌨️ 快捷键说明

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