Running out of GPIO

Forums:

HI,

Love my LedBorg, I also use it as a power (watt) indicator via a currentcost meter, however as it takes up 3 gpio's and I am running out, so I am playing with I2C with a MCP23017 chip, no issue connecting to 3 of the potential 16 additional input/outputs it just the software side I am wondering about, anyone have any solution ?

piborg's picture

If you are able to talk to the I2C chip and make it drive the correct pins, you could modify the PyLed example to drive the I2C bus instead of the GPIO pins.

You may also want to disable the normal LedBorg driver from starting at boot, if you have not already, by using:
sudo update-rc.d ledborg.sh remove

If you need help driving the I2C bus from Python, this guide may help: http://www.instructables.com/id/Raspberry-Pi-I2C-Python/

Subscribe to Comments for "Running out of GPIO"