lcd_th3144.h

来自「EasyARM615的KEIL下的调试程序,包含IO口,串口,SPI口等」· C头文件 代码 · 共 51 行

H
51
字号

#ifndef __LCD_TH3144_H__
#define __LCD_TH3144_H__


#define ASC_TO_SEG_EN 0
#define Hex_TO_SEG_EN 1

#define LCD_DP    0x10

#define LCD_DOW   0x01
#define LCD_DAY   0x02
#define LCD_MON   0x04
#define LCD_YEAR  0x08
#define LCD_DOT   0x20
#define LCD_PM    0x40
#define LCD_AM    0x80

#define LCD_V     (0x10 << 8)
#define LCD_TMP   (0x20 << 8)
#define LCD_MINUS (0x40 << 8)
#define LCD_PLUS  (0x80 << 8)


typedef struct {

   unsigned char  D1;
   unsigned char  D2;
   unsigned char  D3;
   unsigned char  D4;
   unsigned int Sign;
   
}LCD_TH3144;

extern  LCD_TH3144 Lcd_Seg ;
extern  void  Lcd_Clean(void);
extern  void  Lcd_Update(void)	;

#if ASC_TO_SEG_EN>0
	extern  unsigned char AscToSeg(char  Asc);
#endif


#if Hex_TO_SEG_EN>0
    extern  unsigned char  HexToSeg(unsigned char  Hex);
#endif


#endif

⌨️ 快捷键说明

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