?? lcd.h
字號:
/*
* LCD Device Driver
*
*
* COPYRIGHT (c) 2001 - 2010.
* emTech System Corporation.
*
* The license and distribution terms for this file may be
* found in found in the file LICENSE.
*/
/* Huangf emcore@263.net
*/
#include "stddefs.h"
#ifndef __LCD_h
#define __LCD_h
#define FONT_FILE "/usr/local/hz16"
#define BPP 8
#define SCREEN_WIDTH 320
#define SCREEN_HEIGHT 240
#define FB_SIZE (SCREEN_WIDTH * SCREEN_HEIGHT * BPP / 8)
#define LINE_OFFSET (SCREEN_WIDTH * BPP / 8)
int lcd_fillrect(
short x1,
short y1,
short x2,
short y2,
int c
);
int lcd_vline(
short x,
short y1,
short y2,
unsigned char c,
int xorm
);
int lcd_hline(
short x1,
short y,
short x2,
unsigned char c,
int xorm
);
char lcd_getpixel(
short x,
short y
);
int lcd_putpixel(
short x,
short y,
unsigned char c,
int xorm
);
int lcd_textout(
short x,
short y,
unsigned char *buf,
int color
);
int lcd_getdisplay();
int lcd_getx();
int lcd_gety();
void fb_release();
void init();
int lcd_bitmap(
short x0,
short y0,
short width,
short height,
unsigned char *pcc,
int xorm
);
int SetFrontColor(unsigned char clr);
int SetBackColor(unsigned char clr);
void show_palette();
#endif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -