Best tools and libraries for using i2c to extend GPIO ports

The Raspberry Pi is a series of credit card-sized single-board computers developed in the United Kingdom by the Raspberry Pi Foundation to promote the teaching of basic computer science in schools and developing countries.

Post Reply
User avatar
/RaspberryPi
Corporate
Posts: 2449
Joined: Wed Jun 05, 2019 1:29 am

Best tools and libraries for using i2c to extend GPIO ports

Post by /RaspberryPi »

I've installed an MCP23017 chip in order to get access to addtional GOPIO pins for a project i'm putting together that involves 16 buttons and 16 LEDs.

I can get the basic functionality of the chip working by addressing the registers manually but for my purpose I'm hoping to do be able to light up individual led's dynamically as I would with the on board GPIO pins.

Are there any libraries or functions that I should be using which would allow me to use the extra pins as I have been with GPIO zero? I've had a good search around but I've not found any information that's at my level!

submitted by /u/mrlargefoot
[link] [comments]

More...
Post Reply

Return to “Raspberry Pi Forum”