Menu

#179 Config.txt python GPIO setup still required

New
nobody
None
Critical
Patch
2020-05-09
2020-05-09
Austin
No

It appears that when GPIO is setup as an output in /boot/config.txt, the Rpi.GPIO library still requires GPIO.setup() to be called. Otherwise, a runtime error occurs that the GPIO has not been configured as an output when trying to set the output to a particular state.

I'm attempting to have a pin setup as an output from boot, and then to manipulate the state using a python script. Adding back in the .setup() call avoids the runtime error.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.