Skip to content

rpsreal/MCP23017_I2C-with-Raspberry-Pi-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 

Repository files navigation

MCP23017_I2C-with-Raspberry-Pi-

Python library to control the MCP23017 GPIO

Install this first: sudo apt-get install -y python-smbus i2c-tools

Wiring alt text

With this library you can use the chip with simple commands, like:

  • GPIO.setup( 0, 'OUT', 'A') # to configure GPA0 like output
  • GPIO.output(0, 1, 'A') # to write in GPA0 1 (high)
  • switch = GPIO.input(7, 'B') # to save the state of GPB7 in 'switch'

Developed by Rui Pedro Silva; Portugal; 03/2015 Based on the work of http://www.raspberrypi-spy.co.uk

About

Python library to control the MCP23017 GPIO

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages