eXtreme Development

RaspberryPi - configuracao

# # INSTALL SOUNDCARD #

# Update drivers apt-get install git-core rpi-update rpi-update reboot

# Update ALSA configuration nano /etc/modprobe.d/alsa-base.conf # Change this line ... options snd-usb-audio index=-2 nrpacks=1 # ... to this options snd-usb-audio index=0 nrpacks=1

# Edit PiMusicBox configuration nano /boot/config/settings.ini # Set analog to 'usb' output = usb

# Force USB port to USB 1.1 nano /boot/cmdline.txt # Add dwc_otg.speed=1

# # INSTALL TFT SCREEN #

cd ~ wget http://adafruit-download.s3.amazonaws.com/libraspberrypi-bin-adafruit.deb wget http://adafruit-download.s3.amazonaws.com/libraspberrypi-dev-adafruit.deb wget http://adafruit-download.s3.amazonaws.com/libraspberrypi-doc-adafruit.deb wget http://adafruit-download.s3.amazonaws.com/libraspberrypi0-adafruit.deb wget http://adafruit-download.s3.amazonaws.com/raspberrypi-bootloader-adafruit-20140917-1.deb dpkg -i --force-overwrite -B *.deb

# Edit /boot/cmdline.txt, after 'rootwait' add fbcon=map:10 fbcon=font:VGA8x8

# Edit /etc/modules and add these lines spi-bcm2708 fbtft_device

# Edit /etc/modprobe.d/adafruit.conf and add options fbtft_device name=adafruitrt28 rotate=90 frequency=32000000

# Reboot the RaspberryPi reboot

# Problems? Probe for modules # modprobe spi-bcm2708 # modprobe fbtft_device name=adafruitts rotate=90

# Choose a better font, Terminus 6x12 sudo apt-get install console-setup sudo dpkg-reconfigure console-setup

# Test by showing an image wget http://adafruit-download.s3.amazonaws.com/adapiluv320x240.jpg sudo fbi -T 2 -d /dev/fb1 -noverbose -a adapiluv320x240.jpg

# # Backlight can be controlled on the CLI #

# Get access to the GPIO by making a device link sudo sh -c "echo 252 > /sys/class/gpio/export"

# Check if the link is present ls -l /sys/class/gpio

# Set GPIO #252 to an output sudo sh -c "echo 'out' > /sys/class/gpio/gpio252/direction"

# Turn on backlight sudo sh -c "echo '1' > /sys/class/gpio/gpio252/value"

# Turn off backlist sudo sh -c "echo '0' > /sys/class/gpio/gpio252/value"

# #-------------------------- #

DONE!

https://learn.adafruit.com/adafruit-pitft-28-inch-resistive-touchscreen-display-raspberry-pi/using-the-console https://github.com/ISO-B/pmb-pitft https://learn.adafruit.com/adafruit-pitft-28-inch-resistive-touchscreen-display-raspberry-pi/software-installation



SourceForge BootStrap