我尝试将lcd与触摸面板AR1100连接到带有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
但重启后触摸不起作用。怎么了?
我如何将这种触摸连接到Android的东西?
答案 0 :(得分:0)
在Android Things应用程序中(不在Android Things系统级别),您可以通过实施AR1100数据协议(UART的第14-15页),通过Raspberry Pi datasheet添加AR1100触摸支持:< / p>
主机应配置为9600 BAUD,8个数据位和1个停止 位。
...
触摸报告始终源自AR1100 响应于触摸检测而发送。格式 触摸报告取决于模式。测量分辨率为 触摸坐标是10位。测量值发生偏移 (乘以4)并以12位格式报告。在里面 报告协议,最低有效坐标位X1:X0 和Y1:Y0将为零。由此产生的完整范围报告 触摸坐标为0到4095.
...
“标准”,5字节触摸报告的格式如表4-2所示:
等
Android Things UART示例,您可以找到here。