?? lcd.h
字號:
/* * LED, LCD and Button panel driver for Cobalt * * This file is subject to the terms and conditions of the GNU General Public * License. See the file "COPYING" in the main directory of this archive * for more details. * * Copyright (C) 1996, 1997 by Andrew Bose * * Linux kernel version history: * March 2001: Ported from 2.0.34 by Liam Davies * */#ifndef __DOT_LCD_H__#define __DOT_LCD_H__/****************************************************//*** select your need lcd module here. ***///#define USE_LM6063A#define USE_LM12232C/****************************************************//* for lm6063a */#ifdef USE_LM6063A#define ROW_NUM 8#define COL_NUM 128#define DATA_BITS 8#endif/****************************************************//* for lm12232c */#ifdef USE_LM12232C#define ROW_NUM 4#define COL_NUM 122#define DATA_BITS 8#endif/*************************************************(*/#define LCD_FRAME_BUF_SIZE ( (ROW_NUM)*(COL_NUM) / (DATA_BITS) )struct lcd_dev{ unsigned char x0; unsigned char y0; //for bitmap mode use only unsigned char x_cnt; unsigned char y_cnt; //for chars mode use only unsigned char font_w; unsigned char font_h; //must 8x unsigned char len; unsigned char buf[LCD_FRAME_BUF_SIZE]; };struct lcd_debug{ unsigned char x0; unsigned char y0; unsigned char x_cnt; unsigned char y_cnt; unsigned char bmp_index;};/*struct lcd_status{ unsigned char on_off; unsigned char lr_ward;};*/#define LCD_DRIVER "Dot LCD Driver v0.90"//#define LCD "lcd: "/* * Function command codes for io_ctl. */#define LCD_RESET 0 #define LCD_ON 1#define LCD_OFF 2#define LCD_CLEAR 3#define LCD_FULL 4#define LCD_DRAW_CHARS 5#define LCD_DRAW_BMP 6#define LCD_LIGHTER 7#define LCD_DARKER 8#define LCD_SET_CONTRAST 9#define LCD_DISP_LEFT 10#define LCD_DISP_RIGHT 11#define LCD_READ 12 //GC3210 board not support now.#define LCD_SELF_TEST 100 //for lcd self test use only.#define LCD_CHARS_MODE 0#define LCD_BMP_MODE 1#endif
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -