I'm using a Gertboard, and the GPIO Python demos were running fine. I started using/modifying the DAC and ADC demo code, and now I can't output to GPIO using Python (e.g. the Gertboard
leds-rg.py doesn't flash the LEDs).
It's not a Gertboard configuration issue, because if I disconnect the Gertboard I still can't set the GPIO pins from Python (no errors, but a voltmeter doesn't change).
gpio write in a terminal works fine.
In Python I get a warning that the channel is already in use, continuing anyway (using a channel that doesn't have a use for SPI).
gpio readall doesn't show any changes I make in Python including to the pin mode, it does of course reflect changes made using
gpio mode and
In order to get SPI running I had to install a few things: (python-dev, spi-dev) and I also ran
apt-get upgrade, and of course had to turn on SPI in
It's a Model 2B running Raspbian, and I'm using Python 2. RPi.GPIO is version 0.5.11.