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

📄 lcdconf.h

📁 含t h r e a d x,u c o s 的b s p
💻 H
字号:
/***********************************************************************
 * $Workfile:   LCDConf.h  $
 * $Revision:   1.1  $
 * $Author:   WellsK  $
 * $Date:   Oct 28 2003 11:50:50  $
 *
 * Project: Segger emWin configuration file (LCDConf.h)
 *
 * Revision History:
 * $Log:   //smaicnt2/pvcs/VM/sharpmcu/archives/sharpmcu/software/csps/lh7a404/bsps/sdk7a404/ports/Segger/emwin/LCDConf.h-arc  $
 * 
 *    Rev 1.1   Oct 28 2003 11:50:50   WellsK
 * Updated to common LCD driver format.
 * 
 *    Rev 1.0   Oct 27 2003 10:32:42   WellsK
 * Initial revision.
 * 
 *
 ***********************************************************************
 * SHARP MICROELECTRONICS OF THE AMERICAS MAKES NO REPRESENTATION
 * OR WARRANTIES WITH RESPECT TO THE PERFORMANCE OF THIS SOFTWARE,
 * AND SPECIFICALLY DISCLAIMS ANY RESPONSIBILITY FOR ANY DAMAGES, 
 * SPECIAL OR CONSEQUENTIAL, CONNECTED WITH THE USE OF THIS SOFTWARE.
 *
 * SHARP MICROELECTRONICS OF THE AMERICAS PROVIDES THIS SOFTWARE SOLELY 
 * FOR THE PURPOSE OF SOFTWARE DEVELOPMENT INCORPORATING THE USE OF A 
 * SHARP MICROCONTROLLER OR SYSTEM-ON-CHIP PRODUCT. USE OF THIS SOURCE
 * FILE IMPLIES ACCEPTANCE OF THESE CONDITIONS.
 *
 * COPYRIGHT (C) 2001 SHARP MICROELECTRONICS OF THE AMERICAS, INC.
 *     CAMAS, WA
 **********************************************************************/

#ifndef SDK7A400_LCDCONF_H
#define SDK7A400_LCDCONF_H

/***********************************************************************
 * Select only one of the following macros to configure the build for
 * that display type!
 **********************************************************************/

#define lq035q7db02          /* 3.5" ADTFT portrait QVGA display */
//#define lq039q2ds53          /* 3.9" HRTFT QVGA display */
//#define lq057q3dc02          /* 5.7" TFT QVGA display */
//#define lq064d343            /* 6.4" TFT VGA display */
//#define lq104v1dg31          /* 10.4" TFT VGA display */
//#define lq121s1dg31          /* 12.1" TFT SVGA display */

#ifdef lq035q7db02
#define LCD_XSIZE     240
#define LCD_YSIZE     320
#define LOCAL_LCD_XSIZE 240
#define LOCAL_LCD_YSIZE 320
#define LCDPANEL sharp_lq035
#endif

#ifdef lq039q2ds53
#define LCD_XSIZE     320
#define LCD_YSIZE     240
#define LOCAL_LCD_XSIZE 320
#define LOCAL_LCD_YSIZE 240
#define LCDPANEL sharp_lq039
#endif

#ifdef lq057q3dc02
#define LCD_XSIZE     320
#define LCD_YSIZE     240
#define LOCAL_LCD_XSIZE 320
#define LOCAL_LCD_YSIZE 240
#define LCDPANEL sharp_lq057
#endif

#ifdef lq064d343
#define LCD_XSIZE     640
#define LCD_YSIZE     480
#define LOCAL_LCD_XSIZE 640
#define LOCAL_LCD_YSIZE 480
#define LCDPANEL sharp_lq064
#endif

#ifdef lq104v1dg31
#define LCD_XSIZE     640
#define LCD_YSIZE     480
#define LOCAL_LCD_XSIZE 640
#define LOCAL_LCD_YSIZE 480
#define LCDPANEL sharp_lq104
#endif

#ifdef lq121s1dg31
#define LCD_XSIZE     800
#define LCD_YSIZE     600
#define LOCAL_LCD_XSIZE 800
#define LOCAL_LCD_YSIZE 600
#define LCDPANEL sharp_lq121
#endif

#ifndef LCDPANEL
#error ERROR - Display type not configured in LCDConf.h
#endif

/***********************************************************************
 * emWin display configuration defines
 **********************************************************************/

/* Color depth, must be 8 or 16 bits per pixel only */
#define LCD_BITSPERPIXEL 16

/* LCD controller support for 1, 2, 4, 8, and 16 bits per pixel */
#define LCD_CONTROLLER   1352

/* One display */
#define LCD_NUM_DISPLAYS 1

/* Display orientation, not mirrored, swapped, or reversed */
#define LCD_MIRROR_X     0
#define LCD_MIRROR_Y     0
#define LCD_SWAP_XY      0
#define LCD_REVERSE      0

/* Virtual display size is same as physical size */
#define LCD_VXSIZE       LCD_XSIZE
#define LCD_VYSIZE       LCD_YSIZE

/* Display X, Y origin is 0, 0 */
#define LCD_XORG         0
#define LCD_YORG         0

/* A fixed LCD palette is used for all colors, so no physical colors */
#undef  LCD_PHYSCOLORS
#define LCD_PHYSCOLORS_IN_RAM 0

/* Depending on color depth, some options are set differently */
#if LCD_BITSPERPIXEL == 16
#define LCD_FIXEDPALETTE 555
#undef LCD_MAX_LOG_COLORS
#define LCD_MAX_LOG_COLORS 0x7FFF
#define LCD_SWAP_RB      1
#endif

#if LCD_BITSPERPIXEL == 8
#define LCD_FIXEDPALETTE 323
#undef LCD_MAX_LOG_COLORS
#define LCD_MAX_LOG_COLORS 0xFF
#define LCD_SWAP_RB      0
#endif

/* No magnification needed on the LCD */
#define LCD_XMAG         1
#define LCD_YMAG         1
 
#endif /* SDK7A400_LCDCONF_H */

⌨️ 快捷键说明

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