嵌入式Linux和Qtopia下矩阵键盘输入的实现-计算机系统应用.pdf

嵌入式Linux和Qtopia下矩阵键盘输入的实现-计算机系统应用.pdf

2010 年 第19卷 第 9 期 算 机 系 统 应 用 嵌入式Linux 和Qtopia 下矩阵键盘输入的实现① 李 翠 屈玉贵 ( 中国科学技术大学 电子工程与信息科学系 安徽 合肥 230027) 要: 详细介绍了基于嵌入式Linux 和Qtopia 的矩阵键盘输入实现 法。通过重载Qt 的事件过滤 ,结 合信号和槽机制,利用两级 态处理及有效输入的界定,来简化输入过程,减少按键次数,提高输入 效率。同时利用Qtopia 的图 显示,使输入界面清晰,更适用于嵌入式终端设备。 关键字: 嵌入式终端;矩阵键盘;Qtopia;事件过滤 ;信号与槽机制 Implementation of Matrix Keyboard Input in Embedded Linux and Qtopia LI Cui, QU Yu-Gui (Department of Electronic Engineering and Information Science, University of Science and Technology of China, Hefei 230027, China) Abstract: This paper introduces an input method in detail based on embedded Linux and Qtopia matrix keyboard. By reimplementing the Qt event filter, combined with signal and slot mechanism to deal with the use of two-tier status, it is possible to use the definition of the effective input to simplify the input process, reduce the number of pressing button, and enhance the efficiency of input. At the same time, with the use of Qtopia graphical display, the input interface is clearer and more applicable to the embedded device. Key words: embedded device; matrix keyboard; Qtopia; event filter; signal and slot mechanism 随着电子技术的不断发展,嵌入式系统的应用越 来越广泛,对其人机交互界面的要求也越来越高。 Qtopia Qtopia 是Trolltech 公司为采用嵌入式Linux 操作系 Qt/Embedded [1] Frame buffer 设备驱动 统的电子设备开发的应用平台 ,Qtopia 包含完整的 应用层、灵活的用户界面、窗口操作系统、应用程序 Linux 操作系统 启动程序以及开发 架,可根据实际需要定制编译, 硬件平台 易于增加新的插件,在嵌入式设备中被广泛应用, 图1 Qtopia 结构1 Qtopia 的实现结构如图1 所示。对于嵌入式系统,键 盘是主要的输入设备。针对键盘输入,在文献[2]中实 1 键盘的硬件电路及驱动 现的键盘驱动为我们实现 Qtopia 下的输入提供了思 1.1 硬件平台 路,但它在文本输入时状态切换频繁,而且可输入符

文档评论(0)

1亿VIP精品文档

相关文档