라즈베리파이 GPIO 설정 확인하는 repository
wpa_supplicant.conf 파일 생성
ctrl_interface=DIR=/var/run/wpa_supplicant
country=GB
update_config=1
network={
ssid="your_ssid"
psk="your_pw"
key_mgmt=WPA-PSK
}
$ sudo raspi-config
Extension > Remote - SSH 설치
.ssh/config 파일 설정
Host <사용자@ip주소>
HostName <hostname>
User <linux 사용자>
연결
$ sudo apt-get update
$ sudo apt-get upgrade
- 기본 설치
```
$ sudo apt-get install git
```
```
$ sudo apt-get install cmake
```
```
$ cd /tmp
$wget https://project-downloads.drogon.net/wiringpi-latest.deb
$ sudo dpkg -i wiringpi-latest.deb
```
- 버전 확인
```
$ grep "define BCM2835_VERSION" /usr/local/include/bcm2835.h
```
- 설치
```
$ wget http://www.airspayce.com/mikem/bcm2835/bcm2835-1.68.tar.gz
$ tar zxvf bcm2835-1.68.tar.gz
$ cd bcm2835-1.68
$ ./configure
$ make
$ sudo make check
$ sudo make install
$ gcc your_program.c -o output -lbcm2835
```