/**************************************************
** 文件名:lcd.h
** 版本号:V 1.0
** 文件说明:配置LCD相关参数
** 使用不同的屏请修改第13行的预定义中
***************************************************/
#define PT035 1
#define WD_F3224 2
#define TX11D 3
#define LCD_TYPE TX11D //显示类型选择
#define M5D(n) ((n) & 0x1fffff) // To get lower 21bits
#if(LCD_TYPE == PT035)
#define MVAL (13)
#define MVAL_USED (0) //0=each frame 1=rate by MVAL
#define INVVDEN (1) //0=normal 1=inverted
#define BSWP (0) //Byte swap control
#define HWSWP (1) //Half word swap control
//TFT 320240
#define LCD_XSIZE_TFT (320)
#define LCD_YSIZE_TFT (240)
#define SCR_XSIZE_TFT (320)
#define SCR_YSIZE_TFT (240)
//Timing parameter for LCD PT035
#define VBPD (11) //垂直同步信号的后肩
#define VFPD (5) //垂直同步信号的前肩
#define VSPW (5) //垂直同步信号的脉宽
#define HBPD (69) //水平同步信号的后肩
#define HFPD (10) //水平同步信号的前肩
#define HSPW (5) //水平同步信号的脉宽
#define CLKVAL_TFT (7)
#elif(LCD_TYPE == WD_F3224)
#define MVAL (13)
#define MVAL_USED (0) //0=each frame 1=rate by MVAL
#define INVVDEN (1) //0=normal 1=inverted
#define BSWP (0) //Byte swap control
#define HWSWP (1) //Half word swap control
//TFT 320240
#define LCD_XSIZE_TFT (320)
#define LCD_YSIZE_TFT (240)
#define SCR_XSIZE_TFT (320)
#define SCR_YSIZE_TFT (240)
//Timing parameter for LCD WD_F3224
#define VBPD (12) //垂直同步信号的后肩
#define VFPD (5) //垂直同步信号的前肩
#define VSPW (5) //垂直同步信号的脉宽
#define HBPD (69) //水平同步信号的后肩
#define HFPD (10) //水平同步信号的前肩
#define HSPW (5) //水平同步信号的脉宽
#define CLKVAL_TFT (4)
#elif(LCD_TYPE == TX11D) // 4.3
#define MVAL (13)
#define MVAL_USED (0) //0=each frame 1=rate by MVAL
#define INVVDEN (1) //0=normal 1=inverted
#define BSWP (0) //Byte swap control
#define HWSWP (1) //Half word swap control
//TFT 480272
#define LCD_XSIZE_TFT (480)
#define LCD_YSIZE_TFT (272)
#define SCR_XSIZE_TFT (480)
#define SCR_YSIZE_TFT (272)
//Timing parameter for LCD TX11D
#define VBPD (5) //垂直同步信号的后肩
#define VFPD (5) //垂直同步信号的前肩
#define VSPW (5) //垂直同步信号的脉宽
#define HBPD (5) //水平同步信号的后肩
#define HFPD (5) //水平同步信号的前肩
#define HSPW (5) //水平同步信号的脉宽
#define CLKVAL_TFT (5)
#endif
#define HOZVAL_TFT (LCD_XSIZE_TFT -1)
#define LINEVAL_TFT (LCD_YSIZE_TFT -1)
#if((LCD_TYPE == PT035)||(LCD_TYPE == WD_F3224))
extern unsigned char phone[];
#elif(LCD_TYPE == TX11D)
extern unsigned char LCD43_ucos[];
#endif
lcd.rar_4.3 LCD
版权申诉
130 浏览量
2022-09-14
18:57:40
上传
评论
收藏 801B RAR 举报
![avatar](https://profile-avatar.csdnimg.cn/fca2fc36c4174e7caf12f1c9ba2c9265_weixin_42657024.jpg!1)
邓凌佳
- 粉丝: 66
- 资源: 1万+
最新资源
- 练功房角色小企鹅练功房角色小企鹅
- 数据库管理工具:dbeaver-ce-23.1.0-macos-x86-64.dmg
- 数据库管理工具:dbeaver-ce-23.1.0-macos-aarch64.dmg
- 无人车的关键技术、行业发展趋势、以及基本代码
- 数据库管理工具:dbeaver-ce-23.0.5-stable.x86-64.rpm
- 国内移动端APP月活跃(MAU)Top5000 数据整理
- 数据库管理工具:dbeaver-ce-23.0.5-macos-x86-64.dmg
- 数据库管理工具:dbeaver-ce-23.0.5-macos-aarch64.dmg
- 制作一个搜索网站的步骤
- CBDL进行性能监控.rar
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
![feedback](https://img-home.csdnimg.cn/images/20220527035711.png)
![feedback](https://img-home.csdnimg.cn/images/20220527035711.png)
![feedback-tip](https://img-home.csdnimg.cn/images/20220527035111.png)