I'm following this tutorial to use the RPi B+ as a parallel EEPROM programmer. In the Python code in the tutorial, it sets all of the output pins with pull down resistors
GPIO.setup (10, GPIO.OUT, pull_up_down = GPIO.PUD_DOWN) #A0
GPIO.setup (9, GPIO.OUT, pull_up_down = GPIO.PUD_DOWN) #A1
...
This makes sense because the low voltage threshold is 0.8 volts so this makes sure the pins don't float. However, when I run similar code on my Pi (on all pins I have tested (pin 15 & 16 with GPIO.BOARD mode set) I receive the following error.
Traceback (most recent call last):
File "program.py", line 19, in <module>
GPIO.setup (outputEnablePin, GPIO.OUT, pull_up_down = GPIO.PUD_DOWN)
VlueError: pull_up_down parameter is not valid for outputs
I assume you can use the internal pull-down resistors on output pins because it is used in the tutorial code and there are several positive comments about the tutorial. So does anyone know why I'm facing this error and if there is a way to fix it?
Additionally, he uses pin 15 with a pull-down in his code which corresponds to pin 22 as he uses GPIO.BCM, so we are using the same pin.