언덕에 누워 생각하기

Raspberry Pi 2 model B와 Waveshare USB(B) 터치스크린 연결 본문

Linux

Raspberry Pi 2 model B와 Waveshare USB(B) 터치스크린 연결

생각하기 2015. 11. 17. 15:18
반응형

라즈베리파이2 모델B와 Waveshare의 터치스크린을 샀습니다.

홈페이지에서 수정된 라즈비안을 다운로드 하여 설치했을 때에는

문제가 없었으나 Jessie를 받아서 부팅했을 때에는 화면이

하얗게 변하고 깨지기만 했습니다.

 

구글에서 raspberry hdmi jessie 5inch white screen 로 검색하여

Adafruit 사의 비슷한 제품에 대한 설명을 읽었고, 해결책을 찾았

습니다.

 

https://learn.adafruit.com/adafruit-5-800x480-tft-hdmi-monitor-touchscreen-backpack/raspberry-pi-config

 

Waveshare의 수정된 이미지는 아직 Jessie를 반영하지 않았습니다.

제가 산 TFT Touch LCD는 http://www.waveshare.com/wiki/5inch_HDMI_LCD_(B)

 

결론은 아래 내용을 /boot/config.txt 에서 수정하거나 추가해야 합니다.

# 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 480 60 6 0 0 0

 

max_usb_current=1

 

이후 터치를 하기 위해서는

Waveshare 에 있는 드라이버를 설치합니다.

http://www.waveshare.com/wiki/5inch_HDMI_LCD_(B) 에서 가장 하단에 있는

RPI2B_B_B+_USB_TOUCH_RES_5.0_RASPBIAN.tar.gz (For Raspberry Pi 2 Model B) 를 다운로드 합니다.

그리고, 같은 위키 페이지에 있는 설명대로

Copy the file RPI2B_B_B+_USB_TOUCH_RES_5.0_RASPBIAN.tar.gz into the Raspbian system, and unzip it. That is, enter the terminal and input the following command:

sudo tar  zxvf  RPI2B_B_B+_USB_TOUCH_RES_5.0_RASPBIAN.tar.gz

Run the script USB_TOUCH_RES_5.0_RASPBIAN located at the folder RPI2B_B_B+_USB_TOUCH_RES_5.0_RASPBIAN by the following commands:

 

cd RPI2B_B_B+_USB_TOUCH_RES_5.0_RASPBIAN

 

sudo ./USB_TOUCH_RES_5.0_RASPBIAN

When finished, the system will reboot automatically. And the LCD module can work properly, including display and touch functions, after the system rebooted.

 

 

반응형