前兩天到手一塊樹莓派3B+,感受板子不錯,有點搞頭,就在某寶上淘了一塊微雪的屏。看起來還不錯,而後就搞了起來。html
再講以前,先說一下參考文檔:網絡
微雪官方:http://www.waveshare.net/wiki/3.2inch_RPi_LCD_(B)oop
靜態ip設置:http://jingyan.baidu.com/article/9158e00056cdc0a255122879.htmlthis
因爲微雪的官方驅動和網卡驅動有衝突,因此咱們不能按照官方的步驟來作。spa
一。把網卡配置文件替換/etc/network/interfaces .net
1 # interfaces(5) file used by ifup(8) and ifdown(8) 2 3 # Please note that this file is written to be used with dhcpcd 4 # For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf' 5 6 # Include files from /etc/network/interfaces.d: 7 source-directory /etc/network/interfaces.d 8 9 auto lo 10 iface lo inet loopback 11 12 # iface eth0 inet dhcp 13 14 auto ethiface eth0 inet static 15 address 192.168.0.20 ## 設定的靜態IP地址 16 netmask 255.255.255.0 ## 網絡掩碼 17 gateway 192.168.0.1 ## 網關 18 19 20 allow-hotplug wlan0 21 iface wlan0 inet manual 22 wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf 23 24 allow-hotplug wlan1 25 iface wlan1 inet manual 26 wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
二。安裝腳本:code
1 #!/bin/sh 2 wget http://www.waveshare.net/w/upload/9/95/LCD-show-160813.tar.gz 3 4 chmod +777 LCD-show-160813.tar.gz 5 6 tar vzxf LCD-show-160813.tar.gz 7 8 sudo su 9 10 cp LCD-show /root/ -r 11 12 cd 13 14 cd LCD-show/ 15 16 ./LCD32-show