1. 先接TTL到電腦
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