野火电子论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 15042|回复: 1

STemWin移植液晶屏驱动IC R61509V问题

[复制链接]
发表于 2015-4-17 14:55:21 | 显示全部楼层 |阅读模式
emWin 5.24 手册说明 驱动IC  R61509V 按以下进行配置:

31.7.14 GUIDRV_CompactColor_16
......
Driver selection and configuration
To be able to use this driver the following macro definition needs to be added to the
configuration file LCDConf.h:
#define LCD_USE_COMPACT_COLOR_16
After this define has been added the display driver assumes the driver specific configuration file LCDConf_CompactColor_16.h in the configuration folder. All further
compile time configuration macros should be defined in this file. To create a driver
device using the GUIDRV_CompactColor_16 for the given display, e.g. the following
command can be used:
pDevice = GUI_DEVICE_CreateAndLink(GUIDRV_COMPACT_COLOR_16,
GUICC_565, 0, 0);
现在问题是:

1、按照野火的 “1.emWin_basic ”的例程,找不到  LCDConf.h 文件;
2、
void LCD_X_Config(void) {
  ......
pDevice = GUI_DEVICE_CreateAndLink(GUIDRV_COMPACT_COLOR_16, GUICC_565, 0, 0);
这样修改后,编译提示以下错误

..\..\STemWinLibrary522\Config\LCDConf_FlexColor_Template.c(180): error:  #20: identifier "GUIDRV_COMPACT_COLOR_16" is undefined
3、改为其他IC 的驱动编译也出错;
pDevice = GUI_DEVICE_CreateAndLink(GUIDRV_DIST, COLOR_CONVERSION, 0, Layer);


现在我要  将STemWin移植至 液晶屏驱动IC R61509V,需要怎么改?
谢谢!





回复

使用道具 举报

发表于 2015-4-17 16:44:32 | 显示全部楼层
野火的液晶屏驱动器是ili9341,有对应的驱动函数(《野火emwin实战指南V1.0.0》第10.1.5节有解释),所以用到的驱动对应的文件是LCDConf_FlexColor_Template.h
楼主用的是R61509V,驱动文件要用哪种要参考emWin手册,里边有讲的
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

联系站长|手机版|野火电子官网|野火淘宝店铺|野火电子论坛 ( 粤ICP备14069197号 ) 大学生ARM嵌入式2群

GMT+8, 2024-9-21 05:49 , Processed in 0.032077 second(s), 23 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表