ra8815.h
来自「一个测试LCD的应用程序」· C头文件 代码 · 共 42 行
H
42 行
// ------------------------- 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 + =
减小字号Ctrl + -
显示快捷键?