Open wujiang opened 8 years ago
IMHO the proper fix would not add a blind delay but use a shorter delay and check the permissions, and then loop until these change. Overall this sucks. Maybe we should add an explicit call to export a list of GPIO pins, this way they could all be exported and then it could wait for the permissions to all get fixed.
It looks like Raspberry pi needs some time to get a digital pin link properly after it is being exported.
Sample code to run:
open /sys/class/gpio/gpio10/direction: permission denied
<nil>
Close #52