bash-traffic-lights-pi icon indicating copy to clipboard operation
bash-traffic-lights-pi copied to clipboard

Export GPIO pin needs delay

Open Rudie opened this issue 4 years ago • 0 comments
trafficstars

The first time after bootup I get a permission errors both for setting the direction and the value. After some debugging I found that after the line "echo "$1" > $BASE_GPIO_PATH/export", I needed to add a delay, so I added "sleep 0.05 # Wait 50 ms", which resolved the issue. I am running Python 3.7.3 on a Raspberry Pi 3B (it is in fact the latest "Octopi" software for controlling a 3D printer).

Rudie avatar May 02 '21 18:05 Rudie