2024.06.20
모니터 대신 TFT3.5를 사용
비슷한 것을 찾았다.
https://forums.raspberrypi.com/viewtopic.php?t=166753
https://raspberrypi.stackexchange.com/questions/44179/rpi-2-and-3-95-tft-ili9488
2024.06.22
Copilot 답변
- Connect the SPI LCD:
- Identify the pins on your SPI LCD. Typically, it will have pins for power (5V and GND), SPI communication (MOSI, MISO, SCLK), and possibly a chip select (CS) pin.
- Connect the following pins:
- MOSI (Master Out Slave In) on the Raspberry Pi (Pin 19) to the LCD’s SDA pin.
- MISO (Master In Slave Out) on the Raspberry Pi (Pin 21) if needed.
- Power (5V and GND) to the corresponding pins on the LCD.
- Other pins as required by your specific LCD model.
- Install the LCD Driver:
- Open the terminal window.
- Type the following commands:
git clone https://www.github.com/LCD-show.git cd LCD-show
- This will download the necessary driver files.
일단 github 경로가 잘못되었다.
ili9488 답변
- Load the Drivers:
- You can add a custom driver for the ILI9488 TFT LCD. Here’s how:
- Open the terminal on your Raspberry Pi.
- Navigate to the directory where you want to download the drivers (e.g., ~/fbtft).
- Run the following commands:
sudo modprobe fbtft sudo insmod fb_ili9488.ko sudo insmod fbtft_device.ko name=mcufriend_ili9488 debug=3
- This will load the necessary drivers for your ILI9488 display1.
- You can add a custom driver for the ILI9488 TFT LCD. Here’s how:
- Wiring:
- Connect your ILI9488 TFT LCD to the Raspberry Pi using SPI:
- GPIO6 (SCLK) on the Raspberry Pi to the SCLK pin on the LCD.
- GPIO7 (MOSI) on the Raspberry Pi to the SDA pin on the LCD.
- GPIO0 (CS), GPIO1 (RST), and GPIO2 (DC/RS) on the Raspberry Pi to the corresponding pins on the LCD.
- Connect your ILI9488 TFT LCD to the Raspberry Pi using SPI:
개념 정리가 잘되어 있는 곳
https://chrizog.com/rpi-linux-fbtft-touchscreen-setup
Display는 GPIO를 사용하는 것 같고, Touch는 SPI
RPi 모든 정보는 여기
https://www.raspberrypi.com/documentation/computers/raspberry-pi.html
SPI hardware
Raspberry Pi Zero, 1, 2 and 3 have three SPI controllers:
- SPI0, with two hardware chip selects, is available on the header of all Raspberry Pis; there is also an alternate mapping that is only available on Compute Modules.
- SPI1, with three hardware chip selects, is available on all Raspberry Pi models except the original Raspberry Pi 1 Model A and Model B.
- SPI2, also with three hardware chip selects, is only available on Compute Module 1, 3 and 3+.
https://www.haphazard.io/blog/raspberry-pi-framebuffer-fbtft-ili9341/
2024.06.23
insmod: ERROR: could not load module fb_ili9488.ko: No such file or directory
설치 도중 에러 발생 다시 문의
- Install TFT Drivers:
- You can use the fbtft driver to support the ILI9488 display. Install it with:
sudo pip3 install fbtft
- Load the fbtft module:
sudo modprobe fbtft_device name=adafruit28 busnum=0 rotate=90 gpios=reset:25,dc:24
- You can use the fbtft driver to support the ILI9488 display. Install it with:
- Configure Framebuffer:
- Edit the /etc/modules file and add the following line:
fbtft_device name=adafruit28 busnum=0 rotate=90 gpios=reset:25,dc:24
- Edit the /etc/modules file and add the following line:
그럴싸하다.
하지만 fbtft 인스톨 할때 계속 이상한 에러 발생
blackonyx@rpi02w:~ $ sudo pip3 install fbtft
error: externally-managed-environment
× This environment is externally managed
╰─> To install Python packages system-wide, try apt install
python3-xyz, where xyz is the package you are trying to
install.
If you wish to install a non-Debian-packaged Python package,
create a virtual environment using python3 -m venv path/to/venv.
Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
sure you have python3-full installed.
For more information visit http://rptl.io/venv
note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.
Virtual Env. 관련인가 해서 이것 저것 해보고, OS도 full로 깔아도 똑같다.
다시 에러를 확인해보니 "try apt install python3-xyz" + "python3-full installed" 가 보인다.
sudo apt install python3-full
시도
발열때문인가 mathj?? 뭔가를 설치하다 2, 9% 쯤에서 멈춘다.
'IT > Platform' 카테고리의 다른 글
[TFT LCD] ili9488 STM32, RPi pico 용 UI 플랫폼 (0) | 2024.10.23 |
---|---|
[Logic Analyzer] USB 제품 구매, 설치, 활용 (0) | 2024.08.17 |
[아두이노] ESP-01: 원격제어 (0) | 2024.06.17 |
[RPi] Pico & ESP-01 연결 도전 (0) | 2024.06.16 |
[아두이노] ESP-01: BTT SKR V1.4 연결 (0) | 2024.06.15 |