차이

문서의 선택한 두 판 사이의 차이를 보여줍니다.

차이 보기로 링크

다음 판
이전 판
comfilepi:gpio_init:index [2026/02/20 15:34] – 만듦 - 바깥 편집 127.0.0.1comfilepi:gpio_init:index [2026/07/10 05:00] (현재) mfranklin
줄 3: 줄 3:
 라즈베리 파이 는 GPIO최초상태가 ON으로 되어 있습니다. 그래서 CP-IO보드를 사용하면 최초상태에서 모든 출력포트가 ON이 됩니다. 최초상태를 off로 바꾸려면 시스템 파일중 하나를 수정해야 합니다. 라즈베리 파이 는 GPIO최초상태가 ON으로 되어 있습니다. 그래서 CP-IO보드를 사용하면 최초상태에서 모든 출력포트가 ON이 됩니다. 최초상태를 off로 바꾸려면 시스템 파일중 하나를 수정해야 합니다.
  
-GPIO의 초기 상태를 변경하는 방법은 /boot폴더의 config.txt의 일부내용을 수정하면, GPIO 초기상태를 변경할수 있습니다.+GPIO의 초기 상태를 변경하는 방법은 /boot/firmware폴더의 config.txt의 일부내용을 수정하면, GPIO 초기상태를 변경할수 있습니다.  Bookworm 이전 OS에서는 해당 파일들을 /boot 폴더에서 찾을 수 있습니다.
  <code>  <code>
- sudo nano /boot/config.txt+ sudo nano /boot/firmware/config.txt
 </code> </code>
  
줄 23: 줄 23:
 {{:comfilepi:gpio_init:rpi_gpio_init_contents.png?nolink}} {{:comfilepi:gpio_init:rpi_gpio_init_contents.png?nolink}}
  
-ip : input op : output a0-a5 : Alt0-Alt5 dh : Driving high(output) dl : Driving low(output) pu : Pull up pd : Pull down /pn/np : No pull+  * ''ip'' : input 
 +  * ''op'' : output 
 +  * ''a0''-''a5'' : Alt0-Alt5 
 +  * ''dh'' : Driving high(output) 
 +  * ''dl'' : Driving low(output) 
 +  * ''pu'' : Pull up  
 +  * ''pd'' : Pull down  
 +  * ''pn''/''np'' : No pull
  
 [[comfilepi:index|ComfilePi (컴파일 파이)]] [[comfilepi:index|ComfilePi (컴파일 파이)]]