4
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

RaspberryPiに5inchディスプレイの設定

Last updated at Posted at 2020-03-15

Raspberry Piの5inchディスプレイが手に入ったので,接続したら,

デフォルトでは,解像度が異なるので,以下のように一部がブラックスクリーンになってますので、
これを解消します。

IMG_0771.JPG

設定ファイルの変更

/boot/config.txtを編集すれば.

# 5inch HDMI LCD with Touch Panel XPT2046
# uncomment if hdmi display is not detected and composite is being output
hdmi_force_hotplug=1

# uncomment to force a specific HDMI mode (here we are forcing 800x480!)
hdmi_group=2
hdmi_mode=87
hdmi_cvt=800 600 60 6 0 0 0

# 5inch HDMI LCD with Touch Panel XPT2046(SPI, IRQ=GPIO25, CE1)
# SPI --- タッチパネル用に有効にする.
dtparam=spi=on
dtoverlay=ads7846,penirq=25,speed=10000,penirq_pull=2,xohms=150

この設定で,Raspberry Piを再起動すると,以下のように全画面出力されます.

IMG_0769.JPG

参考文献

Raspberry Pi Config | Adafruit 5" and 7" 800x480 TFT HDMI Backpack
Raspberry Pi 3に HDMI接続の 800x480 5インチ TFT液晶を接続して使用する方法 (ラズパイ3に 5インチ HDMI液晶を接続してタッチパネル機能を有効にする方法、ダウンスケーリングして擬似的に広くする方法。)

4
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?