Presentation is loading. Please wait.

Presentation is loading. Please wait.

Raspberry Pi Lesson 2 – Setup to Use

Similar presentations


Presentation on theme: "Raspberry Pi Lesson 2 – Setup to Use"— Presentation transcript:

1 Raspberry Pi Lesson 2 – Setup to Use
李志清

2 Setup before use it SSH-Console Network SSH-IP VNC Autostart

3 SSH-Console Cable

4 Network Setup - IP sudo nano /etc/network/interfaces auto eth0
iface eth0 inet static address x.xx netmask gateway x.x network broadcast dns-nameservers

5 SSH-Network

6 VNC

7 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

8 Python & GPIO 在 Raspbian 發行版當中,已經預先將 RPi.GPIO 模組包入,因此你可以直接寫以下的 python 程式來控制 GPIO4,要注意的是,RPi.GPIO 設定的 GPIO 是採用 Pin number,也就是說若我要修改 GPIO4 (Pin 7),則實際上呼叫 Rpi.GPIO 的號碼為 7 ,而不是 4 。

9 WebIOPi control your Pi’s GPIO with a browser !


Download ppt "Raspberry Pi Lesson 2 – Setup to Use"

Similar presentations


Ads by Google