freescale

来自「Freescale 系列单片机常用模块与综合系统设计」· 代码 · 共 26 行

TXT
26
字号
#ifndef __LCD128_64_H
#define __LCD128_64_H

/*  常量定义  */
#define LCD_STATUS_BUSY 0x80
#define  START_LINE0   0xc0
#define  DISPLAY_ON    0x3f
#define  DISPLAY_OFF   0x3e
#define  PARA1         0x40

#define LEFT 0
#define RIGHT 1
#define CMD 0
#define DATA 1

//ASCII 字模宽度及高度
#define ASC_CHR_WIDTH	8
#define ASC_CHR_HEIGHT	12
#define ASC_HZ_WIDTH	12

void SetPageCol(unsigned char upage, unsigned char ucol);
void init_lcd(void);
void disp_ch(unsigned char c);
void disp_str(unsigned char *p);

#endif

⌨️ 快捷键说明

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