Skip to content
Snippets Groups Projects
Commit dc390cea authored by BeomSooHeo's avatar BeomSooHeo
Browse files

Add new file

parent 6835ae7d
Branches
No related tags found
No related merge requests found
# RaspberryPi LED practice Controlling GPIO PINs
## 1. 브레드보드에 T자 모듈을 부착한 후, LED와 저항, 전원을 연결함.
<p>
<br><br>
![image](/uploads/5d411c6bed7aa69c4be3012b63f50b2f/image.png)
<br><br>
불이 들어왔다.
</p>
## 2. gpio readall을 통해 현재 RaspberryPi의 GPIO PIN들의 상태를 확인할 수 있다.
<p>
<br><br>
![image](/uploads/ed8b0097b60388ecc4574e4bbe7300ec/image.png)
<br><br>
gpio write [PIN_No.] [1 or 0] 를 통해서 PIN에 대해 ON/OFF 제어가 가능하고,<br><br>
gpio read [PIN_No.] 를 통해 해당 PIN의 상태를 읽어올 수 있다. <br>
</p>
## 3. RaspberryPi 터미널을 통해 PIN에 전압을 제어하기 위해 21번 PIN과 연결하였다.
<p>
<br><br>
![image](/uploads/764b174b9fc7eb1475babba32e8ab3b6/image.png)
<br><br>
gpio write 29 1 을 주었지만 불이 들어오지 않았다..<br><br>
</p>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment