

圖1?M3568-EV-Board評(píng)估板

圖2?MIPI-DSI接口


圖3?HDMI接口
表格2?HDMI接口引腳定義


圖4?LVDS液晶屏接口
表格3?LVDS液晶屏接口引腳定義


圖5?DP接口
表格4?DP接口引腳定義

如圖6所示為板子接上了3個(gè)屏幕HDMI、DSI、LVDS的效果。

圖6?M3568-EV-Board評(píng)估板三屏同顯
如果需要使用多屏異顯的功能,需要配置Weston顯示服務(wù)器。
$ vim /etc/profile.d/weston.sh...export WESTON_DRM_CONFIG=/tmp/.weston_drm.conf...
$ echo "output:HDMI-A-1:primary" >> /tmp/.weston_drm.conf ? ? ? ?/* 配置HDMI-A-1為主屏 */$ echo "output:DSI-1:primary" >> /tmp/.weston_drm.conf ? ? ? ?/* 配置DSI-1為主屏 */$ echo "output:HDMI-A-1:prefer" >> /tmp/.weston_drm.conf ? ? ? ?/* 配置HDMI-A-1為接下來視頻數(shù)據(jù)的輸出屏幕 */$ echo "output:DSI-1:prefer" >> /tmp/.weston_drm.conf ? ? ? ? ?/* 配置DSI-1為接下來視頻數(shù)據(jù)的輸出屏幕 */$ echo "output:HDMI-A-1:pos=100,200" >> /tmp/.weston_drm.conf ? ? ?/* 配置HDMI-A-1畫布開始位置為坐標(biāo)(100,200) */$ echo "output:HDMI-A-1:size=1920x1080" >> /tmp/.weston_drm.conf ? ?/* 配置HDMI-A-1畫布大小為1920x1080 */
//默認(rèn)主屏為lvds$ gst-launch-1.0 videotestsrc ! video/x-raw, width=1280,height=800 ! autovideosink > /dev/null &$ echo "output:HDMI-A-1:prefer" >> /tmp/.weston_drm.conf$ gst-launch-1.0 videotestsrc pattern=colors ! video/x-raw, width=1024,height=600 ! autovideosink > /dev/null &$ echo "output:DSI-1:prefer" >> /tmp/.weston_drm.conf$ gst-launch-1.0 videotestsrc pattern=spokes ! video/x-raw, width=1280,height=800 ! autovideosink > /dev/null &
Hdmi、dsi、lvds三屏異顯效果如所示。

圖7?M3568-EV-Board評(píng)估板三屏異顯
雙屏同顯、雙屏異顯操作和三屏同顯、三屏異顯是一樣的。
??技術(shù)交流群
更多往期文章,請(qǐng)點(diǎn)擊“?閱讀原文?”。






