Adafruit_MCP23008 (community library)
Summary
Name | Value |
---|---|
Name | Adafruit_MCP23008 |
Version | 1.0.6 |
Installs | |
License | BSD-2 |
Author | Limor Fried/Ladyada, Evan Simkowitzesimkowitz@wustl.edu |
URL | https://github.com/esimkowitz/Particle-Adafruit-MCP23008 |
Repository | https://github.com/esimkowitz/Particle-Adafruit-MCP23008.git |
Download | .tar.gz |
All Versions | 1.0.6, 1.0.5, 1.0.3, 1.0.2, 1.0.1 |
Adafruit_MCP23008 I2C expander library adapted for Particle IDE
Example Build Testing
Device OS Version:
This table is generated from an automated build. Success only indicates that the code compiled successfully.
Library Read Me
This content is provided by the library maintainer and has not been validated or approved. Adapted for Particle IDE by Evan Simkowitz. The best wiring diagram I've found is http://gtbtech.com/?p=875
Description from Adafruit: 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 Analog 5 (i2c clock) Connect pin #2 of the expander to Analog 4 (i2c data) 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!
Browse Library Files