-
Notifications
You must be signed in to change notification settings - Fork 0
/
rpi-bash.txt
41 lines (25 loc) · 1.14 KB
/
rpi-bash.txt
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
29
30
31
32
33
34
35
36
37
38
39
40
41
# RPi Display
https://github.com/watterott/RPi-Display#spi-mode
$ sudo wget https://raw.github.com/Hexxeh/rpi-update/master/rpi-update -O /usr/bin/rpi-update
$ sudo chmod +x /usr/bin/rpi-update
Remove or comment out the SPI blacklist line (spi-bcm2708):
$ sudo nano /etc/modprobe.d/raspi-blacklist.conf
Start kernel update:
$ sudo REPO_URI=https://github.com/notro/rpi-firmware rpi-update
$ sudo shutdown -r now
$ sudo apt-get install xinput evtest
To make it permanent (on Debian) add to the file /etc/modules the following line:
fbtft dma
fbtft_device custom name=fb_ili9341 speed=32000000 gpios=reset:23,dc:24,led:18 bgr=1 rotate=270
# Enable piface
http://piface.github.io/pifacecommon/installation.html#enable-the-spi-module
http://piface.github.io/pifacecommon/installation.html#apt-get
# Display calibration
sudo apt-get install libts-bin evtest python-dev python-pip
sudo pip install evdev
sudo TSLIB_FBDEVICE=/dev/fb1 TSLIB_TSDEVICE=/dev/input/event0 ts_calibrate
# Python
sudo easy_install netifaces
# Commands
mplayer -vo fbdev2:/dev/fb1 -vf scale=320:-3 BigBuckBunny_320x180.mp4
fbi -d /dev/fb1 -T 1 -noverbose -a /home/pi/raqpi.png