• 树莓派进阶之路 (039)


    前两天到手一块树莓派3B+,感觉板子不错,有点搞头,就在某宝上淘了一块微雪的屏。看起来还不错,然后就搞了起来。

    再讲之前,先说一下参考文档:

    微雪官方:http://www.waveshare.net/wiki/3.2inch_RPi_LCD_(B)

    静态ip设置:http://jingyan.baidu.com/article/9158e00056cdc0a255122879.html

    由于微雪的官方驱动和网卡驱动有冲突,所以我们不能按照官方的步骤来做。

    一。把网卡配置文件替换/etc/network/interfaces 

     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

    二。安装脚本:

     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
  • 相关阅读:
    asp.net 页面元素分析搜集
    ASP.NET AJAX深入浅出系列UpdatePanel的使用笔记(上)
    用sql语句来管理数据库日志问题
    C# .NET学习网站(转)
    Visual Studio .Net团队开发[转]
    sql 语句大全
    Word中快速操作的10个技巧
    嫁给程序员的好处
    关于手机病毒时代到来的担忧
    自己工作用过的SQL代码(1)
  • 原文地址:https://www.cnblogs.com/jikexianfeng/p/6041227.html
Copyright © 2020-2023  润新知