Navigation

    全志在线开发者论坛

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

    D1s电阻触摸屏能用,但是非常不好用,得用大力戳,这是什么问题呢?

    MR Series
    d1s
    4
    7
    3912
    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.
    • M
      memory LV 7 last edited by

      1 Reply Last reply Reply Quote Share 0
      • M
        memory LV 7 last edited by

        52d34c01-ccaf-4b62-ad86-1baed9dcc59a-image.png

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

          触摸外设驱动的初始化代码需要修改,请稍等,我帮你找找。。。

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

            可以参考这个帖子:D1s 在tina-sdk2.0下无法识别电阻触摸屏

            改一下触摸屏驱动的时钟初始化寄存器参数

            if (of_device_is_compatible(np, "allwinner,sun8i-ts"))
            writel(ADC_FIRST_DLY(0xf) | ADC_FIRST_DLY_MODE(1)
            | ADC_CLK_DIV(2) | FS_DIV(6) | T_ACQ(63),
            ts->base + TP_CTRL0);
            
            M H 2 Replies Last reply Reply Quote Share 1
            • M
              memory LV 7 @whycan last edited by

              @whycan

              13005db8-b34d-456f-a444-844bcc9a9dbc-4ded12a56dd48479ee6d4979a697b9e.jpg

              太感谢了,全志这个电阻触摸如丝般流畅。

              1 Reply Last reply Reply Quote Share 1
              • C
                cfxcfx LV 5 @whycan last edited by

                @whycan 在 D1s电阻触摸屏能用,但是非常不好用,得用大力戳,这是什么问题呢? 中说:

                代码需要修改,请稍等,我帮你找找。。。

                1 Reply Last reply Reply Quote Share 1
                • H
                  hn2zzzz1996 LV 3 @whycan last edited by

                  @whycan 哈哈哈,真好用,又解决一个问题!

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

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

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