⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 lcd.h

📁 该程序是在linux arm下实现的基于framebuffer的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 + -