adafruit/adafruit-beaglebone-io-python — pull request #57 by thardie (2014-03-10 06:41:02+00:00)
Title: Fixed the use of the "initial" parameter in setup().

This allows the initial state of the port to be set correctly when setting OUTPUT mode.

Tested by calling the function without the optional parameter to verify old behavior (port goes low when the function is called), and by calling with "initial" set to 1, and port stays high when switching from input (with pull up) to output.