ein nettes Display:
http://www.ebay.com/itm/281539789263
Touch Screen Resistive
Display construction 480 * 320 DOTS
LCD Controller ILI9481
Touch Screen ControllerXPT2046
Display Color Multicolor, 65536 colors
Installation:
Firmware Update:
sudo REPO_URI=https://github.com/notro/rpi-firmware rpi-update
sudo nano /etc/modprobe.d/raspi-blacklist.conf
And place a hash ‘#’ in front of ‘blacklist spi-bcm2708′ and then reboot.
sudo nano /boot/config.txt and added this line to the bottom
dtparam=spi=on
sudo nano /etc/modules
flexfb width=320 height=480 regwidth=16 init=-1,0xb0,0x0,-1,0x11,-2,250,-1,0x3A,0x55,-1,0x36,0x28,-1,0xC2,0x44,-1,0xC5,0x00,0x00,0x0,0x0,-1,0xE0,0x0F,0x1F,0x1C,0x0C,0x0F,0x08,0x48,0x98,0x37,0x0A,0x13,0x04,0x11,0x0D,0x00,-1,0xE1,0x0F,0x32,0x2E,0x0B,0x0D,0x05,0x47,0x75,0x37,0x06,0x10,0x03,0x24,0x20,0x00,-1,0xE2,0x0F,0x32,0x2E,0x0B,0x0D,0x05,0x47,0x75,0x37,0x06,0x10,0x03,0x24,0x20,0x00,-1,0x11,-1,0X29,-3
fbtft_device debug=3 rotate=90 name=flexfb speed=16000000 gpios=reset:25,dc:24,led:22
ads7846_device gpio_pendown=17 verbose=3 x_plate_ohms=100 pressure_max=255 swap_xy=1
und in /boot/cmdline.txt
fbcon=map:10 fbcon=font:VGA8x8 fbcon=rotate:0
Test:
pi@raspberrypi ~ $ sudo apt-get install fbi pi@raspberrypi ~ $ wget https://ozzmaker.com/Raspi_Logo.png pi@raspberrypi ~ $ sudo fbi -noverbose -T 1 -a -d /dev/fb1 Raspi_Logo.png
http://ozzmaker.com/enable-console-on-piscreen/
http://ozzmaker.com/piscreen-driver-install-instructions-2/
X-Support:
sudo nano /usr/share/X11/xorg.conf.d/99-fbturbo.conf
Comment out the line of text below;
Option "fbdev" "/dev/fb0"This can be done by adding a hash (#) at the beginning of line.
#Option "fbdev" "/dev/fb0"Download and install xinput_calibrator
git clone https://github.com/tias/xinput_calibrator
cd xinput_calibrator/
./autogen.sh
make
sudo make install
make
sudo make install
Download and setup the calibration script
cd ~
wget http://ozzmaker.com/piscreen/xinput_calibrator_pointercal.sh
sudo cp ~/xinput_calibrator_pointercal.sh /etc/X11/Xsession.d/xinput_calibrator_pointercal.sh
sudo cp ~/xinput_calibrator_pointercal.sh /etc/X11/Xsession.d/xinput_calibrator_pointercal.sh
On older images
sudo sh -c ‘echo “sudo /bin/sh /etc/X11/Xsession.d/xinput_calibrator_pointercal.sh” >> /etc/xdg/lxsession/LXDE/autostart’
When copying and pasting the last line above, you will need to confirm that all the quotes get copied correctly
On newer images or the Pi 2
sudo sh -c ‘echo “sudo /bin/sh
/etc/X11/Xsession.d/xinput_calibrator_pointercal.sh” >>
/etc/xdg/lxsession/LXDE-pi/autostart’
Quellen:
http://ozzmaker.com/enable-console-on-piscreen/
http://ozzmaker.com/piscreen-driver-install-instructions-2/
http://ozzmaker.com/enable-x-windows-on-piscreen/
http://diyhacking.com/raspberry-pi-touchscreen-lcd-tutorial/
http://www.sgofficemachines.net/index.php/scanners/item/1048424/B00PVHZJVW
https://learn.adafruit.com/adafruit-pitft-3-dot-5-touch-screen-for-raspberry-pi/detailed-install
noch was mit phyton
https://github.com/MatthewLowden/RPi-XPT2046-Touchscreen-Python
sudo apt-get install python-pip
sudo apt-get install python-dev
sudo apt-get install python-setuptools
git clone https://github.com/Gadgetoid/WiringPi2-Python.git
sudo apt-get install python-setuptools
sudo python setup.py install
sudo apt-get install python-pygame
Keine Kommentare:
Kommentar veröffentlichen