Raspberry Pi ed
WLan ed
anhängen an /etc/wpa_supplicant/wpa_supplicant.conf:
network={
ssid="YourSSID"
psk="password"
key_mgmt=WPA-PSK
}USB-Audio ed
Datei /etc/modprobe.d/alsa-base.conf anlegen mit:
# This sets the index value of the cards but doesn't reorder. options snd_usb_audio index=0 options snd_bcm2835 index=1 # Does the reordering. options snd slots=snd_usb_audio,snd_bcm2835
sudo reboot
Test:
cat /proc/asound/modules
0 snd_usb_audio 1 snd_bcm2835
TFT ed
Treiber ed
http://ozzmaker.com/piscreen-driver-install-instructions-2/
- 1. Initial Config of a New Raspberry Pi Install
After booting your Raspberry Pi for the first time on 2014-01-07-wheezy-raspbian.img, we will need to perform the normal tasks of setting up our Raspberry Pi. E.g expand filesystem, enable SSH, overclocking, etc…
pi@raspberrypi ~ $ sudo raspi-config pi@raspberrypi ~ $ sudo apt-get install rpi-update pi@raspberrypi ~ $ sudo rpi-update pi@raspberrypi ~ $ sudo reboot
- 2. Update
We now want to update our software and OS;
pi@raspberrypi ~ $ sudo apt-get update pi@raspberrypi ~ $ sudo apt-get upgrade pi@raspberrypi ~ $ sudo reboot
- 3. Install Drivers
We now need to install the drivers from Notro’s TFT repository on Github.
pi@raspberrypi ~ $ sudo REPO_URI=https://github.com/notro/rpi-firmware rpi-update
- 4. Enable SPI (Newer version of Raspbian)
Open /boot/config.txt
pi@raspberrypi ~ $ sudo nano /boot/config.txt
And added this line to the bottom
dtparam=spi=on
- 5. Force Drivers to Load at Boot
In this step, we tell the Raspberry Pi to enable the modules at boot which are used by PiScreen.These are entered into /etc/modules
pi@raspberrypi ~ $ 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
pi@raspberrypi ~ $ sudo reboot
- 6. Perform a quick test
We will use fbi to display an image.
pi@raspberrypi ~ $ sudo apt-get install fbi pi@raspberrypi ~ $ wget http://ozzmaker.com/piscreen/image-test.gif pi@raspberrypi ~ $ sudo fbi -noverbose -T 1 -a -d /dev/fb1 image-test.gif
X ed
http://ozzmaker.com/enable-x-windows-on-piscreen/
- 1. Disable framebuffer driver option for /dev/fb0
pi@raspberrypi ~ $ sudo nano /usr/share/X11/xorg.conf.d/99-fbturbo.conf
Option "fbdev" "/dev/fb0"
#Option "fbdev" "/dev/fb0"
- 2. Install all the prerequisites required for calibration
pi@raspberrypi ~ $ sudo apt-get install libtool libx11-dev xinput autoconf libx11-dev libxi-dev x11proto-input-dev -y
- 3. Download and install xinput_calibrator
pi@raspberrypi ~ $ git clone https://github.com/tias/xinput_calibrator pi@raspberrypi ~ $ cd xinput_calibrator/ pi@raspberrypi ~ $ ./autogen.sh pi@raspberrypi ~ $ make pi@raspberrypi ~ $ sudo make install
- 4. Download and setup the calibration script
pi@raspberrypi ~ $ cd ~ pi@raspberrypi ~ $ wget http://ozzmaker.com/piscreen/xinput_calibrator_pointercal.sh pi@raspberrypi ~ $ sudo cp ~/xinput_calibrator_pointercal.sh /etc/X11/Xsession.d/xinput_calibrator_pointercal.sh
pi@raspberrypi ~ $ sudo sh -c 'echo "sudo /bin/sh /etc/X11/Xsession.d/xinput_calibrator_pointercal.sh" >> /etc/xdg/lxsession/LXDE-pi/autostart'
- 5. Start X Windows
pi@raspberrypi ~ $ FRAMEBUFFER=/dev/fb1 startx
To enable automatic login to X after boot, you will need to make a modification to two files.File one;
pi@raspberrypi ~ $ sudo nano /etc/inittab
1:2345:respawn:/sbin/getty 115200 tty1
#1:2345:respawn:/sbin/getty 115200 tty1
1:2345:respawn:/bin/login -f pi tty1 /dev/tty1 2>&1
pi@raspberrypi ~ $ sudo nano /etc/rc.local
su -l pi -c "env FRAMEBUFFER=/dev/fb1 startx &"