Transcript 下載/瀏覽
Raspberry Pi Lesson 2 – Setup to Use 李志清 Setup before use it ❖ SSH-Console ❖ Network ❖ SSH-IP ❖ VNC ❖ Autostart SSH-Console Cable Network Setup - IP sudo nano /etc/network/interfaces auto eth0 iface eth0 inet static address 192.168.x.xx netmask 255.255.255.0 gateway 192.168.x.x network 192.168.1.0 broadcast 192.168.1.255 dns-nameservers 168.95.1.1 8.8.8.8 SSH-Network VNC Auto Start $ cd /home/pi $ cd .config $ mkdir autostart $ cd autostart $ nano tightvnc.desktop [Desktop Entry] Type=Application Name=TightVNC Exec=vncserver :1 StartupNotify=false Python & GPIO 在 Raspbian 發行版當中, 已經預先將 RPi.GPIO 模組 包入,因此你可以直接寫以 下的 python 程式來控制 GPIO4,要注意的是, RPi.GPIO 設定的 GPIO 是 採用 Pin number,也就是說 若我要修改 GPIO4 (Pin 7), 則實際上呼叫 Rpi.GPIO 的 號碼為 7 ,而不是 4 。 WebIOPi ❖ control your Pi’s GPIO with a browser !