2016년 5월 20일 금요일

Raspberry Pi - wiringPi Installation

One method to use GPIO Port of raspberry pi is using wiringPi. Basic information and guide is in wiringPi web site.

http://wiringpi.com/

wiringPi can be downloaded form git. So git must be installed first.

pi@raspberrypi ~$ sudo su -
root@raspberrypi:~# aptitude install git
root@raspberrypi:~# exit
pi@raspberrypi ~$ git clone git://git.drogon.net/wiringPi
Cloning into 'wiringPi'...
remote: Counting objects: 657, done.
remote: Compressing objects: 100% (599/599), done.
remote: Total 657 (delta 476), reused 95 (delta 58)
Receiving objects: 100% (657/657), 247.61 KiB | 94 KiB/s, done.
Resolving deltas: 100% (476/476), done.

Build from source code.

pi@raspberrypi ~$ cd wiringPi
pi@raspberrypi ~/wiringPi$ ./build

Pin Layout can be checked by gpio readall command.



0 개의 댓글:

댓글 쓰기