티스토리 뷰
실무자가 들려 주는 라즈베리파이 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
이후 디스플레이를 연결하고 재부팅 해줍니다.
- Total
- Today
- Yesterday
- 차단기 선정
- 스테핑모터
- b접점
- 마이크로 컨트롤러
- PLC
- 모터
- 통신기술
- 전류
- SSR
- BLDC
- Serial 통신
- 레더
- 트랜지스터
- 릴레이
- EMR
- 교류
- 라즈베리파이
- 계전기
- 전기전자
- 제어
- a접점
- 차단기
- 전자소자
- 로터
- 마이컴
- 실무자
- 스테핑 모터
- UART
- 통신
- 쉬운설명
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |