Raspberry pi Recall

1. 先接TTL到電腦

電腦輸入command: 
screen /dev/cu.usbserial
2. TTL連上後,讓Rpi連上網路(重新整理網路設定,並重新連線)

Rpi輸入command:
/etc/init.d/networking restart

3. Rpi連上網路後,查看IP
Rip輸入command:
hostname -I
or
ifconfig

4. 以SSH連線(這樣在Rpi打code比較順,否則用TTL連線的只能顯示一行,根本不能打code)
電腦輸入command:
ssh root@172.20.10.5

5. 在Rpi以GPIO控制LED

待續

參考:
1. 以不同使用者登入ssh:https://www.raspberrypi.org/documentation/remote-access/ssh/unix.md
2. 葉難(寫Python)(GPIO寫LED閃爍):http://yehnan.blogspot.tw/2012/07/raspberry-pigpioled.html
3. CodeSchool(寫)Java:http://www.codedata.com.tw/java/java-embedded-7-raspberry-pi-gpio-implementation-1/
4. 智慧生活(寫)Python:http://cheng-min-i-taiwan.blogspot.tw/2013/04/raspberry-pi-python.html

作者

RongSon

Graduate Student of CCU COMM Game Development, Network Communication, macOS/Ubuntu/Android, Arduino/Raspberry Pi/Intel Edison, Java/Python/C/C++

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *