📄 hdrv_s6b33b0a.h
字号:
#include "sysdef.h"
#include "Drv_S6B33B0A.h"
#ifndef _UI_S6B33B0A_H
#define _UI_S6B33B0A_H
#ifdef __IAR_SYSTEMS_ASM
/* //dlm
#define LCMRST_GIO_EN_REG 0xf5 //GPIO_D5 (Output) reset
#define LCMRST_GIO_DATA_REG 0xf7
#define LCMRST_SET_BIT 0x20
#define LCMRST_CLR_BIT 0xdf
#define LCMA0_GIO_EN_REG 0xf0 //GPIO_B5 (Output) DI
#define LCMA0_GIO_DATA_REG 0xf2
#define LCMA0_SET_BIT 0x20
#define LCMA0_CLR_BIT 0xdf
//#define LCMBL_GIO_EN_REG 0xf0 //GPIOA2(Output) PowerOn/Off
#define LCMBL_GIO_DATA_REG 0xee
#define LCMBL_SET_BIT 0x04
#define LCMBL_CLR_BIT 0xfb
#define A0_GIO_DATA_REG LCMA0_GIO_DATA_REG
#define A0_SET_BIT LCMA0_SET_BIT
#define A0_CLR_BIT LCMA0_CLR_BIT
*/
/*
#define LCMCE_GIO_EN_REG 0xf0 //GPIO_B5 (output) 片选
#define LCMCE_GIO_DATA_REG 0xf2
#define LCMCE_SET_BIT 0x20
#define LCMCE_CLR_BIT 0xdf
*/
////////////////////////////////////////////////////////////////////
//#ifdef __IAR_SYSTEMS_ASM
#define LCMRST_GIO_EN_REG 0xfe //GPIO_G2 (Output) reset
#define LCMRST_GIO_DATA_REG 0xff //
#define LCMRST_SET_BIT 0x04 //?
#define LCMRST_CLR_BIT 0xfb //?
#define LCMA0_GIO_EN_REG 0xfe //GPIO_G1 (Output) DI
#define LCMA0_GIO_DATA_REG 0xff //
#define LCMA0_SET_BIT 0x02 //?
#define LCMA0_CLR_BIT 0xfd //?
#define LCMBL_GIO_EN_REG 0xf8 //GPIO_E3(Output) PowerOn/Off
#define LCMBL_GIO_DATA_REG 0xfa //?
#define LCMBL_SET_BIT 0x08 //?
#define LCMBL_CLR_BIT 0xf7 //?
#define A0_GIO_DATA_REG LCMA0_GIO_DATA_REG
#define A0_SET_BIT LCMA0_SET_BIT
#define A0_CLR_BIT LCMA0_CLR_BIT
#define LCMCE_GIO_EN_REG 0xf3 //GPIO_C3 (output) 片选
#define LCMCE_GIO_DATA_REG 0xf4 //?
#define LCMCE_SET_BIT 0x08 //?
#define LCMCE_CLR_BIT 0xf7 //?
///////////////////////////////////////////////////////////////////
#endif /* __IAR_SYSTEMS_ASM */
#ifdef __IAR_SYSTEMS_ICC
//硬件驱动接口函数
/*
void sUI_HardInit(void);
void StandbyScreen(bool bStandby);
void SetContrast(char ContrastValue);
void SetWindow(region_t *region);
void UpdateScreen(const region_t *region);
void
void sUI_GetPixelData ( char *buff , int datacnt , char mode );
void sUI_PixelDataTrans( void );
void sUI_PixelNullTrans( void );//送一个空数据,表示这个点不变
void sUI_GetPixelData ( char *buff , int datacnt );
long sUI_GetBuffData (void);
long RGB (BYTE red, BYTE green, BYTE blue );
void SetDrawMode (BYTE mode );
void VscrollSet (BYTE startline, BYTE endline, BYTE lowerfixednum, BYTE mode);
void Vscroll (BYTE scrllstartline);
*/
#endif //__IAR_SYSTEMS_ICC
#endif /* _UI_S0724_H */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -