硬汉嵌入式论坛

 找回密码
 立即注册
查看: 5374|回复: 1
收起左侧

[emWin] emwin显示问题请教

[复制链接]

7

主题

33

回帖

54

积分

初级会员

积分
54
发表于 2020-5-9 09:16:48 | 显示全部楼层 |阅读模式
LCDConf_FlexColor_Template.c 中定义的x,y的大小分别为240 320
配置文件如下:
//
// Physical display size
//
#define XSIZE_PHYS  240 // To be adapted to x-screen size
#define YSIZE_PHYS  320 // To be adapted to y-screen size

/*********************************************************************
*
*       Configuration checking
*
**********************************************************************
*/
#ifndef   VXSIZE_PHYS
  #define VXSIZE_PHYS XSIZE_PHYS
#endif
#ifndef   VYSIZE_PHYS
  #define VYSIZE_PHYS YSIZE_PHYS
#endif
#ifndef   XSIZE_PHYS
  #error Physical X size of display is not defined!
#endif
#ifndef   YSIZE_PHYS
  #error Physical Y size of display is not defined!
#endif
#ifndef   GUICC_565
  #error Color conversion not defined!
#endif
#ifndef   GUIDRV_FLEXCOLOR
  #error No display driver defined!
#endif


GUI_DispStringAt("Hello world!", 240, 30);  后实际显示是这样的,见下图,感觉xy反了
微信图片_20200509091447.jpg
这个是哪里配置错了吗?
回复

使用道具 举报

1万

主题

7万

回帖

11万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
115787
QQ
发表于 2020-5-9 09:38:52 | 显示全部楼层
把你显示屏的扫描方式修改的跟你的显示效果匹配下。
回复

使用道具 举报

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

本版积分规则

QQ|小黑屋|Archiver|手机版|硬汉嵌入式论坛

GMT+8, 2025-5-18 20:16 , Processed in 0.235990 second(s), 27 queries .

Powered by Discuz! X3.4 Licensed

Copyright © 2001-2023, Tencent Cloud.

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