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

📄 define.h

📁 motorola 1.4" CSTN LCD test program. Drive IC: SSD17
💻 H
字号:
/*******************************************************************************
  Define.h
  Copyright (c) InnoLux Corp. All rights reserved.
*******************************************************************************/


#ifndef _Define_H
#define _Define_H

#include <AT89X52.H>

/*************************************************************************************/
//system definition or set
extern void InitialUART();

          /**********************************
          *     Control Pin definition      *
          **********************************/

#define RW            P3_3   //WR

#define CS          P3_2  /* Chip Select */
//#define CLK        P1_6
//#define DOUT         P1_7
#define RESET       P3_0  /* LCD System Reset */
#define CMD          P3_1  /* Register Select Input(High-Display Data, Low-Commond Data) */
//#define PAUSE     P3_5 

/************************************************************************************/
//color index
#define Red      0xe0 
#define Green    0x1c
#define Blue     0x03
#define Black    0x00
#define White    0xff
#define RG       0xfc
#define RB       0xe3
#define GB       0x1f
//parameter constant

typedef  bit             Bit;
typedef  bit             Bool;
typedef  unsigned char   Byte;
typedef  unsigned int    Word;
typedef  unsigned long   Long;
#define  DATA      data
#define  IDATA     idata
#define  XDATA     xdata
#define  RDATA     code
#define  PDATA     pdata

/************************************************************************************/
//function defined for serial mode transfering
//extern void Send_Data_ser(unsigned char mode,unsigned char content);
//extern void Send_Command_ser(unsigned char mode,unsigned char content);
/************************************************************************************/
/************************************************************************************/
//function define region For 6800 & 8080 8bit 332 444mode
extern void DelayX1ms (unsigned int value);
extern void Send_Command(Byte content);
extern void Send_Data(Byte contennt);
extern void Set_Column(unsigned char start,unsigned char end);
extern void Set_Page(unsigned char start, unsigned char end);
extern void New_Gray_ColorBar_16leavel_8b444(Word height,Word width);
extern void initial(Byte Color_Mode);

/************************************************************************************/
//Parameter Define Region
static unsigned int height=65;
static unsigned int width=96; 
static unsigned int height1=20;
static unsigned int width1=24;
static unsigned char T_Mode; 
extern Byte code gray_index444[];
/************************************************************************************/

#endif

⌨️ 快捷键说明

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