HAMESS-1st-on-demand / RaspberryPi_Check

라즈베리파이 GPIO 설정 확인하는 repository
1 stars 1 forks source link

Raspberry-_Pi_Check :floppy_disk:

라즈베리파이 GPIO 설정 확인하는 repository


초기 설정

1. Raspberry Pi Imager

2. Setting for ssh

3. Setting Remote-SSH in VS code

4. 초기 설정

    $ sudo apt-get update
    $ sudo apt-get upgrade

버전 확인

gcc version : 12.2.0
- 기본 설치
git version : 2.39.2
```
    $ sudo apt-get install git
```
cmake version : 3.25.1
```
    $ sudo apt-get install cmake
```
wiringpi(gpio -v로 확인) : 2.5.2
```
    $ cd /tmp
    $wget https://project-downloads.drogon.net/wiringpi-latest.deb
    $ sudo dpkg -i wiringpi-latest.deb
```
bcm2835 library
- 버전 확인
```
     $ 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
```
Linux 버전 Check(uname -a) : Linux raspberrypi22 6.1.0-rpi4-rpi-v8 #1 SMP PREEMPT Debian 1:6.1.54-1+rpt2 (2023-10-05) aarch64 GNU/Linux