?? lcdlib.h
字號(hào):
/*********************************************************************************************
* File name : lcdlib.h
* Author : Brian Zheng
* Descript : lcd庫函數(shù)的頭文件
* History
* Brian Zheng, Programming modify, May 26, 2008
*********************************************************************************************/
#include "2410lib.h"
#define LCD_XSIZE_CSTN 320 //定義顯示屏的行像素?cái)?shù)
#define LCD_YSIZE_CSTN 240 //定義顯示屏的列像素?cái)?shù)
#define SCR_XSIZE_CSTN (LCD_XSIZE_CSTN * 2) //定義虛擬顯示區(qū)域的行像素?cái)?shù)目
#define SCR_YSIZE_CSTN (LCD_YSIZE_CSTN * 2) //定義虛擬顯示區(qū)域的列像素?cái)?shù)目
#define CLKVAL_CSTN (30)//(30) //定義CLKVAL的值
#define LINEVAL_CSTN (LCD_YSIZE_CSTN - 1) //定義垂直方向上的數(shù)據(jù)域
#define HOZVAL_CSTN (LCD_XSIZE_CSTN*3/8 - 1) //定義水平方向上的數(shù)據(jù)域
#define WDLY_CSTN (0)//(1)
#define WLH_CSTN (0)//(2)
#define LINEBLANK_CSTN (16&0xff)//(20)
#define MVAL_CSTN (13)//(0x04)
#define PAGEWIDTH 160
#define OFFSET 0
#define LCDFRAMEBUFFER 0x31000000
#define LCDBASEU 0x0
#define LCDBASEL 38400 //LCDBASEU + (PAGEWIDTH+OFFSET) * LCD_YSIZE_CSTN
//#define LCDFRAMEBUFFER 0x33800000
#define LCDFRAMEBUFFER 0x31000000
#define GREEN 0x1C
#define RED 0xE0
#define BLUE 0x03
#define LCD_D_ON rGPCDAT |= (1 << 4)
#define LCD_ENVID_ON rLCDCON1 |= 1
#define M5D(n) ((n) & 0x1fffff) // 獲取低21bits
void lcd_port_init(void);
void lcd_reg_init(void);
void pixel_display(INT32T x, INT32T y, INT32T c);
void clear_screen(UINT32T c);
void lcd_init(void);
void draw_line(int x1,int y1,int x2,int y2,int color);
void draw_rectangle(int x1,int y1,int x2,int y2,int color);
void draw_vline(int x1, int x2, int y, int color, int width);
void draw_hline(int x, int y1, int y2, int color, int width);
void draw_rectangle_width(int x1, int y1, int x2, int y2, int color, int width);
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -