Android Things:显示无法正常工作 [英] Android Things: display isn't working
问题描述
之前我曾将我的 RaspberryPi
与Waveshare LCD一起使用,并且已安装 Raspbian
,所以显示没有问题,但是现在我有了 Android Things
SDK,那么如何使用它来进行显示呢?由于Waveshare为 Raspbian
操作系统提供了不同的映像,但是如何为 Android Things
操作系统获取驱动程序?
Earlier I was using my RaspberryPi
with Waveshare LCD and Raspbian
was installed so there was no issue with display, but now I have Android Things
SDK so how can I get display working with it? As Waveshare was providing different image for Raspbian
OS, but how to get its driver for Android Things
OS?
I was following this and this for installation on raspberry-pi.
推荐答案
到目前为止, Android Things
图像尚未随附默认配置显示在 config.txt
文件中SD卡的根目录(请参阅引导分区)。该配置应手动添加。 在提供的文档或制造商的网站中查找合适的显示配置。
As of now Android Things
image isn't shipped with a default configuration for display in config.txt
file which is located in the root of your SD card (see the boot partition). The configuration should be added manually. Look for an appropriate display configuration in the supplied documentation or manufacturer's website.
例如,对于我来说, Waveshare 5inch 800x480 HDMI LCD(B)
以下行需要附加到 config.txt
:
For example, in my case for Waveshare 5inch 800x480 HDMI LCD (B)
the following lines needed to be appended to config.txt
:
max_usb_current=1
hdmi_group=2
hdmi_mode=87
hdmi_cvt 800 480 60 6 0 0 0
实际上, max_usb_current
, hdmi_group
和 hdmi_mode具有上述值的
参数应适用于不同制造商的各种显示器。 hdmi_cvt
中的屏幕分辨率会有所不同。
In fact, the max_usb_current
, hdmi_group
and hdmi_mode
parameters with the values above should work for a wide range of displays from different manufacturers. Screen resolution in hdmi_cvt
will vary.
这篇关于Android Things:显示无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!