사용자 도구

사이트 도구

English

comfilepi:gpio_init:index

차이

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

차이 보기로 링크

양쪽 이전 판 이전 판
다음 판
이전 판
comfilepi:gpio_init:index [2020/11/23 00:03]
Comfile Technology
comfilepi:gpio_init:index [2023/04/28 15:21] (현재)
Comfile Technology
줄 1: 줄 1:
 ====== GPIO 최초상태 설정 ======= ====== GPIO 최초상태 설정 =======
  
-라즈베리 파이 는 GPIO최초상태가 ON으로 되어 있습니다. 그래서 ​CPIO보드를 사용하면 최초상태에서 모든 출력포트가 ON이 됩니다. 최초상태를 off로 바꾸려면 시스템 파일중 하나를 수정해야 합니다.+라즈베리 파이 는 GPIO최초상태가 ON으로 되어 있습니다. 그래서 ​CP-IO보드를 사용하면 최초상태에서 모든 출력포트가 ON이 됩니다. 최초상태를 off로 바꾸려면 시스템 파일중 하나를 수정해야 합니다.
  
-  *[[./edit_binfile|직접 고치]]+GPIO의 초기 상태를 변경하는 방법은 ​/boot폴더의 config.txt의 일부내용을 수정하면,​ GPIO 초상태를 변경할수 있습니다. 
 + <​code>​ 
 + sudo nano /​boot/​config.txt 
 +</​code>​
  
-시스템파일 직접 고치는 방법이 까다로워서 저희가 미리 만들어 놓은 파일을 복사하는 방법이 있습니다.+{{:​comfilepi:​gpio_init:​rpi_gpio_init.png?​nolink|}}
  
-[[https://​www.comfile.co.kr/​download/​pi/​dt-blob.bin|다운로드 dt-blob파일]]+config.txt 내용 중 아래의 내용이 없거나 다르면 아래 내용과 같이 수정하면 초기상태를 변경 할 수 있습니다. 
 +<​code>​ 
 +# GPIO37,​38,​39 : ESD level shifter chip enable 
 +gpio=37-39=op,np,dh
  
-{{ :​comfilepi:​gpio_init:​1.png?​nolink |}}+# Set all GPIO pins to output and low 
 +gpio=4-13=ip 
 +gpio=16=ip 
 +gpio=17-27=op,​np,​dl 
 +</​code>​
  
-VNC로 접속한뒤 위 화살표로 가르킨 아이콘을 클릭하세요. [https://​blog.naver.com/​cubloc/​222148843647m|VNC설치및 사용방법]]+{{:comfilepi:​gpio_init:​rpi_gpio_init_contents.png?​nolink}}
  
-{{ :comfilepi:gpio_init:vnvfilecopy.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
  
 [[comfilepi:​index|ComfilePi (컴파일 파이)]] [[comfilepi:​index|ComfilePi (컴파일 파이)]]
comfilepi/gpio_init/index.1606057437.txt.gz · 마지막으로 수정됨: 2020/11/23 00:03 저자 Comfile Technology