Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
421 views
in Technique[技术] by (71.8m points)

raspberry pi3 - Android Things: display isn't working

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.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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.

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

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...