04-08-2021, 06:17 PM
@hrenowsky
The gpio logic is more complicated than was allowed for in the script you copied.
If a gpio pin is already been exported then you'll get the message you see when you try to export it again.
I suggest you consult Raspberry Pi documentation and forums to learn more and then expand your script to test whether the pin is already exported (and either use it or first unexport it and then export it again).
Regards,
Kent
The gpio logic is more complicated than was allowed for in the script you copied.
If a gpio pin is already been exported then you'll get the message you see when you try to export it again.
I suggest you consult Raspberry Pi documentation and forums to learn more and then expand your script to test whether the pin is already exported (and either use it or first unexport it and then export it again).
Regards,
Kent