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

📄 ra8815.h

📁 一个测试LCD的应用程序
💻 H
字号:
// ------------------------- Headerfile for ra8815.c ---------------------------
#ifndef __RA8815__
#define __RA8815__

// -------------------------- Constants Definition -----------------------------
#define X_MAX        128
#define Y_MAX        32
#define Screen_Size  ((X_MAX/8)*Y_MAX)

#define GRAPHIC		0x00
#define TXT0808		0x01
#define TXT0816		0x02
#define TXT1616		0x03
// -----------------------------------------------------------------------------

// ------------------------ Function Prototypes --------------------------------
// LCD Busy Check
void LCD_CheckBusy(void);
// Write a command to the register specified by index
void WriteCmd(uint8 index, uint8 dByte);
// Write a data to DDRAM
void WriteData(uint8 dByte);
// Read a Commamd from index register
uint8 ReadCmd(uint8 index);
// Set LCD Drawing Mode
void SetMode(uint8 iMode);
// Goto a specific position
void Gotoxy(uint8 xUnit, uint8 yBit);
// Display a string of Ascii chars on the screen
void SendStr(uint8 *ptrString, uint16 tDelay);
// Clear LCD Screen
void LCD_CLS(void);
// wait and clear
void wait_and_clear(void);
// LCD Initialization
void LCD_Initial(void);
// LCD Graphic Testing
void LCD_Test(void);
// -----------------------------------------------------------------------------
#include "ra8815.c"
#endif

⌨️ 快捷键说明

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