Introdution

High PPI 2.2 inch TFT Display Shield for Raspberry Pi 3B/2B/B+/A+ With 6 Keyboards and Remote IR; It’s fit to raspberry pi 3 model B 2B/B+/A+; with 6 customized button, with IR function. you can customize your button function for your application.

Features

  • Demensions: 65mm x 56.5mm, it’s a standard raspberry pi HAT expansion size
  • Resolution: 320 x 240, 2.2 inch, High PPI display screen
  • With 6 keyboards
  • With IR function
  • Support official Raspberry pi case

How to support dual screen display

Now, this LCD support dual screen display, you can display on this LCD or other HDMI display screen (such as your desktop display) together, but you must use the image from us. The download link of Image:http://osoyoo.com/driver/2016-02-26-raspbian-jessie-2fb.7z

write the Image to micro SD card, after installing the system image to your SD card . wait for a minutes, the LCD can display.

How to DIY the six button

step 1:Down the image file fromhttp://osoyoo.com/driver/2016-02-26-raspbian-jessie-2fb.7z or http://osoyoo.com/driver/2015-09-24-raspbian-jessie-pitft.7z, write the Image to micro SD card, after installing the system image to your SD card . wait for a minutes, the LCD can display.

setp 2:Log in Raspberry by ssh and install related python and software

  • sudo  apt-get  update
  • sudo apt-get install libudev-dev
  • sudo apt-get install python-pip
  • sudo pip install rpi.gpio
  • sudo pip install python-uinput

setp 3:Edit /etc/modules file, and append the following line to register the uinput module

  • sudo  nano  /etc/modules
 
 
  1. uinput

reboot pi.it’ll be registered automatically after powering.

step 4:Download this sample and unzip it, and copy into raspberry. (NOTE: it’s only a demo code, you can study it then develop your application.)

  • cd  ~
  • wget  http://osoyoo.com/driver/Python-keys.tar.gz
  • tar  -zxvf  Python-keys.tar.gz
  • cd  Python-keys

step 5:Run the procedure of imitated keyboard or rocker, press the button and check it

  • sudo python rpi-2.2TFT-kbrd.py

or

  • sudo python rpi-2.2TFT-jstk.py

or

  • sudo python rpi-2.2TFT-mouse.py

Attention: uinput means uinput.KEY_XX (XX means Button. Take A for example, that is uinput.KEY_A)

How to turn on/off backlight

turn on backlight

  • gpio -g mode 27 in

or

  • cd  ~/Python-keys
  • sudo  python   BackLightOn.py

turn off backlight

  • gpio -g mode 27 out

or

  • cd ~/Python-keys
  • sudo python BackLightOff.py

Leave a Reply

WordPress spam blocked by CleanTalk.
Bombax Theme designed by itx
"