net.setExternal(True)
NetExternalComponents.setExternal(pin)
# q is an output, has to be explicitly set as output
- # everything else can kinda get away with not being set
+ # everything else set to input
if name == 'q':
net.setDirection( Net.Direction.OUT )
+ else:
+ net.setDirection( Net.Direction.IN )
# separate the pin groups
x += step * 3