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

📄 ht0610.h

📁 笔段型TN LCM测试
💻 H
字号:
// --------------------- Head file for ht0610.c -------------------------------

#ifndef	__HT0610__
#define	__HT0610__

// -------------------------- Constants definition -----------------------------
#define LCD_ON	0x29	// Display Enable
#define LCD_OFF	0x28	// Display Disable

//#define LCD_L0	0x40	// The address of line 0
#define LCD_P0	0x00	// The address of page 0

#define LCD_CMAX 	120	// Maximal Column of LCD
#define LCD_PMAX	4	// Maximal Page of LCD
#define LCD_LMAX	32	// Maximal Line of LCD

#define IC_CMAX		120	// Maximal Colume of IC
#define IC_PMAX		5	// Maximal Page of IC (include ICON Page)
#define IC_LMAX		33	// Maximal Line of IC

#define LCD_ADC		0x22	// Normal Segment Dir
//#define LCD_ADC	0x23	// Reverse Segment Dir
#define LCD_SHL		0x24	// Normal Common Dir
//#define LCD_SHL	0x25	// Reverse Common Dir

//#define LCD_ICOMAX	4		// Maximal Icons of LCD
#ifdef LCD_ICOMAX
	uint8 code ICONS[LCD_ICOMAX] = 
	{
		// Collumn Address of Icons
		120,121,122,123
	};
#endif
// -----------------------------------------------------------------------------

// --------------------------- Functions Declaration ---------------------------
// Set column address
void SetCA(uint8 CAddr);
// Set page address
void SetPA(uint8 PAddr);
// Goto specific position
void Gotoxy(uint8 page, uint8 col);
#ifdef LCD_8BIT
	// Read a data from LCD DDRAM
	uint8 ReadData(uint8 PAddr, uint8 CAddr);
	// Reverse display of Page PAddr
	void ReversePage(uint8 PAddr);
#endif
// Set LCD Contrast
void SetContrast(uint8 CValue);
#ifdef LCD_ICOMAX
	// Set LCD specific Icon ON/OFF
	void SetIcon(uint8 State, uint8 index);
	// Turn On/Off all icons
	void Allicons(bit State);
	// Display Icons and then hide them
	void ICON_Test(void);
#endif
// Tile the LCD screen with two datas
void Tile(uint8 fst, uint8 snd);
// Clear the LCD Screen
void Clear(void);
// Clear page X
void ClearPage(uint8 PAddr);
// Wait some time and clear the screen
void wait_and_clear(void);
// Initialize LCD
void LCD_Initial(void);
// Display LCD Test Graphics
void LCD_Test(void);
// -----------------------------------------------------------------------------

#include "ht0610.c"

#endif

⌨️ 快捷键说明

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