【问题标题】:Android things driver for AR1100适用于 AR1100 的 Android Things 驱动程序
【发布时间】:2017-11-24 16:04:58
【问题描述】:

我尝试将带有触摸面板 AR1100 的 LCD 连接到带有 Android 设备的 Raspberry pi3。 Android 没有这种触摸的驱动程序,我找到了这个解决方案:

创建文件:

/system/usr/idc/Vendor_04d8_Product_0c03.idc

然后写:

# This is an example of an input device configuration file.
# It might be used to describe the characteristics of a built-in touch screen.
# The device is a external device.
device.internal = 0
# The device should behave as a touch screen device.
touch.deviceType = touchScreen
# The device uses the same orientation as the built-in display.
touch.orientationAware = 1

但重启后触摸不起作用。怎么了??

我如何将这种触摸连接到安卓设备?

【问题讨论】:

    标签: raspberry-pi android-things


    【解决方案1】:

    在您的 Android Things 应用程序(不是 Android Things 系统级别)中,您可以通过实施 AR1100 数据协议(datasheet 第 14-15 页)通过 Raspberry Pi UART 添加 AR1100 触摸支持:

    主机应配置为 9600 波特率、8 个数据位和 1 个停止 位。

    ...

    触摸报告始终来自 AR1100,并且是 响应触摸检测发送。的格式 触摸报告取决于模式。测量分辨率为 触摸坐标为 10 位。测量值偏移 (乘以 4)并以 12 位格式报告。在里面 报告协议,最低有效坐标位 X1:X0 Y1:Y0 将为零。报告的结果满量程范围 触摸坐标为 0 到 4095。

    ...

    “标准”的 5 字节触摸报告的格式如表 4-2 所示:

    等等

    您可以找到 here 的 Android Things UART 示例。

    【讨论】:

    • @EvgeniySherbak 是的,这不是一般的解决方案,但对于您的应用来说,它应该可以工作。
    猜你喜欢
    • 1970-01-01
    • 2011-12-16
    • 2011-02-09
    • 1970-01-01
    • 2019-02-06
    • 1970-01-01
    • 2012-02-11
    • 2014-04-16
    • 2021-09-28
    相关资源
    最近更新 更多