Does the Adafruit GPIO python library set GPIO lines low when it loads?

Hello all,

I’m using the Adafruit_BBIO python libraries (which I think are great! BTW) in a project with the BeagleBone Black. (OS = Debian, BBB = RevC)

I have some GPIO lines that I’m using to interface to a cape we’ve developed. When I run my python program, I set some lines to outputs and bring them high or low as needed. When I exit the python program back to the command line, I do not change the lines, so I would expect them to be in the last state I wrote them to. This is the case as far as I can tell.

What appears to be happening is that any output lines that were set high are forced low when I run the python program again (which loads the library).

Is it normal for the Adafruit library to set GPIO outputs to the low state when it gets loaded?


Hi Dave,

This is really a question to ask of the maintainer for the project. Who seems to be Tony DiCola from Adafruit industries.