Navigation

    全志在线开发者论坛

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • 在线文档
    • 社区主页

    电阻屏反应速度查看

    飞凌嵌入式专区
    2
    2
    1102
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      haaland LV 6 last edited by q1215200171

      a40I怎么来查看电阻屏的反馈速度?是用getevent工具吗?还是其他的?

      1 Reply Last reply Reply Quote Share 0
      • Y
        giao LV 6 last edited by q1215200171

        尝试将android工具getevent移植到linux中,可以成功查看电阻屏的反馈速度。
        参考了 https://www.cnblogs.com/liangliangge/p/12921889.html 中的办法
        工具的源码路径为:android/system/core/toolbox/getevent.c
        其中源码中getevent.c文件中内容有修改
        由于头文件input.h-labels.h生成过程中涉及权限问题,直接新建了input.h-labels.h文件并复制黏贴了参考链接中的内容
        Makefile文件参考了 lichee/buildroot-201611/target/user_rootfs_apps/cmd/subs 下的工程里的Makefile

        用getevent -lrt命令输出时间戳、上报速率等,要计算事件之间的时间间隔,我们可以取两个连续事件的时间戳(括号内的数值)并计算它们之间的差值。这个时间戳的单位不太清楚。

        1 Reply Last reply Reply Quote Share 0
        • Moved from 爱搞机专区 by  q1215200171 q1215200171 
        • 1 / 1
        • First post
          Last post

        Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号

        行为准则 | 用户协议 | 隐私权政策