embeded/raspberry pi2015. 6. 10. 10:21

엥? 머가 많이 다른 구조인데?!?!

pi@raspberrypi /sys/class/gpio $ tree

.

├── export

├── gpiochip0 -> ../../devices/soc/3f200000.gpio/gpio/gpiochip0

└── unexport


1 directory, 2 files 


unexport 해봤지만.. PWM으로 GPIO1을 바꿔봐도 원복되진 않네...

To remove the configuration of the pin, use:

$ gpio unexport 1

To remove all configurations:

$ gpio unexportall

Feel free to use the gpio program to configure other pins as input or output (PWM is only for special function pins like GPIO18(WiringPi 1), other PWM pins are occupied by the 3.5mm audio connector.


[링크 : https://sites.google.com/site/semilleroadt/raspberry-pi-tutorials/gpio] 


Posted by 구차니