엔지니어링/Raspberry Pi

실무자가 들려 주는 라즈베리파이 Adafruit PiTFT Plus 320x240 2.8" 디스플레이 사용 방법

앤카 2022. 9. 3. 00:00
반응형

오늘 포스트에서는 라즈베리파이에서 아래의 디스플레이를 사용하는 방법에 대해 써보려고 합니다.
Adafruit PiTFT Plus 320x240 2.8"

https://www.adafruit.com/product/2423

 

제가 사용한 디스플레이가 이닌 같은 제조사의 사이즈나 스펙이 조금 다른 디스플레이  

 

사용 방법은 간단합니다.

라즈베리파이에서 아래의 명령어를 차례로 입력해주세요.

cd /home/pi/Downloads
sudo apt-get update
sudo apt-get install -y git python3-pip
sudo pip3 install --upgrade adafruit-python-shell click
git clone https://github.com/adafruit/Raspberry-Pi-Installer-Scripts.git
cd Raspberry-Pi-Installer-Scripts

이 디스플레이는 콘솔모드와 HDMI를 연결한 것과 같은 디스플레이 모드로 설정할 수 있습니다.

 

 

콘솔모드

PiTFT 2.4",2.8", 또는 3.2" Resistive touchscreens 에서는 아래의 명령어를 입력해 주세요.

sudo python3 adafruit-pitft.py --display=28r --rotation=90 --install-type=console

 PiTFT 2.8"Capacitive touchscreen 에서는 아래의 명령어를 입력해주세요.

sudo python3 adafruit-pitft.py --display=28c --rotation=90 --install-type=console

PiTFT 2.2" Display 에서는 아래의 명령어를 입력해주세요.

sudo python3 adafruit-pitft.py --display=22 --rotation=90 --install-type=console

PiTFT 3.5" Resistive touchscreen에서는 아래의 명령어를 입력해주세요.

sudo python3 adafruit-pitft.py --display=35r --rotation=90 --install-type=console

Mini PuTFT 1.3", BrainCraft HAT, 1.3" Color TFT Bonnet, or 1.5" Display 에서는 아래의 명령어를 입력해주세요.

sudo python3 adafruit-pitft.py --display=st7789_240x240 --rotation=0 --install-type=console

Mini PiTFT 1.14" Display 에서는 아래의 명령어를 입력해주세요.

sudo python3 adafruit-pitft.py --display=st7789_240x135 --rotation=270 --install-type=console

 

디스플레이 모드 [FBCP]

PiTFT 2.4",2.8", 또는 3.2" Resistive touchscreens 에서는 아래의 명령어를 입력해 주세요.

sudo python3 adafruit-pitft.py --display=28r --rotation=90 --install-type=fbcp

 PiTFT 2.8"Capacitive touchscreen 에서는 아래의 명령어를 입력해주세요.

sudo python3 adafruit-pitft.py --display=28c --rotation=90 --install-type=fbcp

PiTFT 2.2" Display 에서는 아래의 명령어를 입력해주세요.

sudo python3 adafruit-pitft.py --display=22 --rotation=90 --install-type=fbcp

PiTFT 3.5" Resistive touchscreen에서는 아래의 명령어를 입력해주세요.

sudo python3 adafruit-pitft.py --display=35r --rotation=90 --install-type=fbcp

Mini PuTFT 1.3", BrainCraft HAT, 1.3" Color TFT Bonnet, or 1.5" Display 에서는 아래의 명령어를 입력해주세요.

sudo python3 adafruit-pitft.py --display=st7789_240x240 --rotation=0 --install-type=fbcp

Mini PiTFT 1.14" Display 에서는 아래의 명령어를 입력해주세요.

sudo python3 adafruit-pitft.py --display=st7789_240x135 --rotation=270 --install-type=fbcp

이후 디스플레이를 연결하고 재부팅 해줍니다.

 

 

 

반응형