Skip to content

JBionics/MCP23008-I2C

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

This is very much beta, it seems to work fine but its not optimized and doesn't currently suport the interrupt capability of the chip

Currently it can do: setting pin directions, inputs and outputs and turning on/off the pull-up resistors

To use:
Connect pin #1 of the expander to D1 (i2c clock)
Connect pin #1 to 5V (using a pullup resistor ~4K7 (4700) ohms)
Connect pin #2 of the expander to D0 (i2c data)
Connect pin #2 to 5V (using a pullup resistor ~4K7 (4700) ohms)
Connect pins #3, 4 and 5 of the expander to ground (address selection)
Connect pin #6 and 18 of the expander to 5V (power and reset disable)
Connect pin #9 of the expander to ground (common ground)
Pins 10 thru 17 are your input/output pins

Check the datasheet for more info: http://ww1.microchip.com/downloads/en/DeviceDoc/21919b.pdf

Enjoy and send pull requests!

About

Arduino Library for the MCP23008 (and '9) I2C I/O expander

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 100.0%