2994|3

150

帖子

0

TA的资源

一粒金砂(中级)

楼主
 

9B96屏幕怎么改变显示方向啊 [复制链接]

9B96屏幕怎么改变上下显示方向啊

最新回复

在drivers/kitronix320x240x16_ssd2119_8bit.c中修改如下的宏,就可以改变显示的方向了。//***************************************************************************** // // This driver operates in four different screen orientations. They are: // // * Portrait - The screen is taller than it is wide, and the flex connector is // on the left of the display. This is selected by defining // PORTRAIT. // // * Landscape - The screen is wider than it is tall, and the flex connector is // on the bottom of the display. This is selected by defining // LANDSCAPE. // // * Portrait flip - The screen is taller than it is wide, and the flex // connector is on the right of the display. This is // selected by defining PORTRAIT_FLIP. // // * Landscape flip - The screen is wider than it is tall, and the flex // connector is on the top of the display. This is // selected by defining LANDSCAPE_FLIP. // // These can also be imagined in terms of screen rotation; if portrait mode is // 0 degrees of screen rotation, landscape is 90 degrees of counter-clockwise // rotation, portrait flip is 180 degrees of rotation, and landscape flip is // 270 degress of counter-clockwise rotation. // // If no screen orientation is selected, "landscape flip" mode will be used. // //***************************************************************************** #if ! defined(PORTRAIT) && ! defined(PORTRAIT_FLIP) && \ ! defined(LANDSCAPE) && ! defined(LANDSCAPE_FLIP) #define LANDSCAPE_FLIP #endif  详情 回复 发表于 2012-5-23 19:58
 
点赞 关注

回复
举报

1803

帖子

0

TA的资源

五彩晶圆(高级)

沙发
 

回复 楼主 wzp2007 的帖子

需要对 LCD 控制器的驱动比较熟悉,不过不知道 LCD 控制器有没有这样的寄存器。
否则就比较麻烦一点。
 
 

回复

150

帖子

0

TA的资源

一粒金砂(中级)

板凳
 

回复 沙发 Study_Stellaris 的帖子

修改驱动上面的一个宏定义就OK了
 
 
 

回复

245

帖子

0

TA的资源

纯净的硅(初级)

4
 
在drivers/kitronix320x240x16_ssd2119_8bit.c中修改如下的宏,就可以改变显示的方向了。

//*****************************************************************************
//
// This driver operates in four different screen orientations. They are:
//
// * Portrait - The screen is taller than it is wide, and the flex connector is
// on the left of the display. This is selected by defining
// PORTRAIT.
//
// * Landscape - The screen is wider than it is tall, and the flex connector is
// on the bottom of the display. This is selected by defining
// LANDSCAPE.
//
// * Portrait flip - The screen is taller than it is wide, and the flex
// connector is on the right of the display. This is
// selected by defining PORTRAIT_FLIP.
//
// * Landscape flip - The screen is wider than it is tall, and the flex
// connector is on the top of the display. This is
// selected by defining LANDSCAPE_FLIP.
//
// These can also be imagined in terms of screen rotation; if portrait mode is
// 0 degrees of screen rotation, landscape is 90 degrees of counter-clockwise
// rotation, portrait flip is 180 degrees of rotation, and landscape flip is
// 270 degress of counter-clockwise rotation.
//
// If no screen orientation is selected, "landscape flip" mode will be used.
//
//*****************************************************************************
#if ! defined(PORTRAIT) && ! defined(PORTRAIT_FLIP) && \
! defined(LANDSCAPE) && ! defined(LANDSCAPE_FLIP)
#define LANDSCAPE_FLIP
#endif

 
个人签名学习靠的就是努力,靠的就是坚持……
 
 

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

随便看看
查找数据手册?

EEWorld Datasheet 技术支持

相关文章 更多>>
关闭
站长推荐上一条 1/9 下一条

 
EEWorld订阅号

 
EEWorld服务号

 
汽车开发圈

About Us 关于我们 客户服务 联系方式 器件索引 网站地图 最新更新 手机版

站点相关: 国产芯 安防电子 汽车电子 手机便携 工业控制 家用电子 医疗电子 测试测量 网络通信 物联网

北京市海淀区中关村大街18号B座15层1530室 电话:(010)82350740 邮编:100190

电子工程世界版权所有 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号 Copyright © 2005-2025 EEWORLD.com.cn, Inc. All rights reserved
快速回复 返回顶部 返回列表