📄 s6b0724.h
字号:
// --------------------- Header file for em62100.c -----------------------------
/* -------------------------- Compatible ICs -----------------------------------
S6B0724, ST7565, NT7532/4, SSD1815, SPLC502, EM62100
*/
#ifndef __S6B0724__
#define __S6B0724__
// -------------------------- Constants definition -----------------------------
#define LCD_ON 0xAF // Display Enable
#define LCD_OFF 0xAE // Display Disable
#define LCD_L0 0x40 // The address of line 0
#define LCD_P0 0xB0 // The address of page 0
#define LCD_CMAX 128 // Maximal Column of LCD
#define LCD_PMAX 8 // Maximal Page of LCD
#define LCD_LMAX 64 // Maximal Line of LCD
#define IC_CMAX 132 // Maximal Colume of IC
#define IC_PMAX 9 // Maximal Page of IC (include ICON Page)
#define IC_LMAX 65 // Maximal Line of IC
#define LCD_DATN 0xA6 // Normal Display 'H'on
#define LCD_DATR 0xA7 // Reverse Display 'L'on
#define LCD_ADC 0xA0 // Normal Segment Dir
//#define LCD_ADC 0xA1 // Reverse Segment Dir
#define LCD_SHL 0xC0 // Normal Common Dir
//#define LCD_SHL 0xC8 // Reverse Common Dir
#define LCD_ALLON 0xA5 // All Pixels on
#define LCD_BACK 0xA4 // Turn back to normal display
#define LCD_BIAS 0xA2 // LCD Bias
#define StaRMW 0xE0 // Start Read-Modify-Write Mode
#define EndRMW 0xEE // End Read-Modify-Write Mode
#define IC_RST 0xE2 // IC Software Reset
//#define LCD_ICOMAX 22 // Maximal Icons of LCD
#ifdef LCD_ICOMAX
uint8 code ICONS[LCD_ICOMAX] =
{
// Collumn Address of Icons
0, 3, 14, 22, 35, 47, 56, 93,
102,105,110,111,112,113,117,119,
120,122,123,125,130,131
};
#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);
// Set NLine Inversion
void InverseNLine(bit State, uint8 nLine);
#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);
#define __LCD_TEST__
#ifdef __LCD_TEST__
// Display LCD Test Graphics
void LCD_Test(void);
#endif
// -----------------------------------------------------------------------------
#include "s6b0724.c"
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -