Navigation

    全志在线开发者论坛

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

    lvgl电阻触摸

    MR Series
    2
    19
    4770
    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.
    • A
      a614547915 LV 5 last edited by

      D1s自带的电阻触摸TPADC已经能够做触摸校正,并且ts_test数据也正常现在就是TSLIB_TSDEVICE=/dev/input/event0 ts_uinput报错,是因为什么呢截图如下

      whycan 1 Reply Last reply Reply Quote Share 0
      • A
        a614547915 LV 5 last edited by

        715f8e7b37b4a45aaadd5d0fcc0152a.png

        1 Reply Last reply Reply Quote Share 0
        • whycan
          whycan晕哥 LV 9 @a614547915 last edited by

          @a614547915

          把这个驱动选项勾起来 CONFIG_INPUT_UINPUT=y

          A 1 Reply Last reply Reply Quote Share 0
          • A
            a614547915 LV 5 @whycan last edited by

            @whycan 在 lvgl电阻触摸 中说:

            CONFIG_INPUT_UINPUT

            好的已经调试出event2 但是新的问题是1659448478785.jpg

            A 1 Reply Last reply Reply Quote Share 0
            • A
              a614547915 LV 5 @a614547915 last edited by

              @a614547915 并且会很卡 getevent xy数据无问题但是lvgl触摸有问题

              whycan 1 Reply Last reply Reply Quote Share 0
              • whycan
                whycan晕哥 LV 9 @a614547915 last edited by

                @a614547915
                有没有用 ts_calibrate 校正,有没有用 ts_test 测试?

                A 1 Reply Last reply Reply Quote Share 0
                • A
                  a614547915 LV 5 @whycan last edited by

                  @whycan event0时 先校正了一次 通过TSLIB_TSDEVICE=/dev/input/event0 ts_uinput生成了event2这个通过SLIB_TSDEVICE=/dev/input/event2 ts_calibrate 没有反应

                  1 Reply Last reply Reply Quote Share 0
                  • A
                    a614547915 LV 5 last edited by

                    @whycan 触摸 卡的不像话 现在有没有办法解决 ts.conf 已经调了 但是没有什么改善

                    whycan 1 Reply Last reply Reply Quote Share 0
                    • whycan
                      whycan晕哥 LV 9 @a614547915 last edited by

                      @a614547915

                      可以参考这个帖子: D1S芒果派MQ-R在tina-sdk2.0下无法识别电阻触摸屏

                      ① 用这个先生成校准文件:

                      TSLIB_TSDEVICE=/dev/input/event0 ts_calibrate

                      ② 后台运行 uinput:

                      TSLIB_TSDEVICE=/dev/input/event0 ts_uinput

                      ③ 前台执行 测试:

                      TSLIB_TSDEVICE=/dev/input/event2 ts_test

                      这个坐标应该是正确的。

                      注意看环境变量!

                      A 1 Reply Last reply Reply Quote Share 0
                      • A
                        a614547915 LV 5 last edited by

                        @whycan 谢谢晕哥 我就是按照这个帖子流程来的 现在已经能够触摸但是没有办法确定在LVGL中坐标是否正确,是否有什么办法进行查看现在使用的是lvgl8参考的是链接文本

                        1 Reply Last reply Reply Quote Share 0
                        • A
                          a614547915 LV 5 @whycan last edited by

                          @whycan 在使用 TSLIB_TSDEVICE=/dev/input/event0 ts_calibrate校正的时候就很卡,大概得一秒左右才能出坐标

                          whycan 1 Reply Last reply Reply Quote Share 0
                          • whycan
                            whycan晕哥 LV 9 @a614547915 last edited by

                            @a614547915 在 lvgl电阻触摸 中说:

                            大概得一秒左右才能出坐标

                            evtest /dev/input/event0

                            这个卡吗?

                            A 4 Replies Last reply Reply Quote Share 0
                            • A
                              a614547915 LV 5 @whycan last edited by

                              @whycan 没有试过 回去试试

                              1 Reply Last reply Reply Quote Share 0
                              • A
                                a614547915 LV 5 @whycan last edited by

                                @whycan 8f316523-0f2c-453b-a98b-f939fbf2bdef-1659535290033(1).jpg 不太行

                                1 Reply Last reply Reply Quote Share 0
                                • A
                                  a614547915 LV 5 @whycan last edited by

                                  @whycan 7d687cef-0276-4aa4-be93-590a04b477c0-image.png 按照您之前说的 应该不能用TSLIB_TSDEVICE=/dev/input/event2 ts_test这个来测试了

                                  1 Reply Last reply Reply Quote Share 0
                                  • A
                                    a614547915 LV 5 last edited by

                                    晕哥求助 在校正的时候就很卡怎么解决

                                    1 Reply Last reply Reply Quote Share 0
                                    • A
                                      a614547915 LV 5 @whycan last edited by

                                      @whycan

                                      上面视频体现的是卡顿这个就有一些跳动

                                      whycan 1 Reply Last reply Reply Quote Share 0
                                      • whycan
                                        whycan晕哥 LV 9 @a614547915 last edited by

                                        @a614547915
                                        确认触摸屏是好的吗?

                                        A 1 Reply Last reply Reply Quote Share 0
                                        • A
                                          a614547915 LV 5 @whycan last edited by

                                          @whycan 嗯嗯 可以确定 用的是讯为的屏幕

                                          1 Reply Last reply Reply Quote Share 0
                                          • 1 / 1
                                          • First post
                                            Last post

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

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