
Adafruit-MCP23008-library
Arduino Library for the MCP23008 (and '9) I2C I/O expander
27
Github Watches
50
Github Forks
58
Github Stars
ARCHIVED !!!
This library has been archived. Please use the replacement library: https://github.com/adafruit/Adafruit-MCP23017-Arduino-Library
Adafruit MCP23008 Library 

To download, click "Download Source" in the top right corner. Then install as indicated in our tutorial: --> http://www.ladyada.net/library/arduino/libraries.html in a folder called Adafruit_MCP23008.
You will also need the Adafruit BusIO library: https://github.com/adafruit/Adafruit_BusIO
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!
相关推荐
Emulating Dr. Jordan B. Peterson's style in providing life advice and insights.
Your go-to expert in the Rust ecosystem, specializing in precise code interpretation, up-to-date crate version checking, and in-depth source code analysis. I offer accurate, context-aware insights for all your Rust programming questions.
Advanced software engineer GPT that excels through nailing the basics.
Embark on a thrilling diplomatic quest across a galaxy on the brink of war. Navigate complex politics and alien cultures to forge peace and avert catastrophe in this immersive interstellar adventure.
The all-in-one Desktop & Docker AI application with built-in RAG, AI agents, No-code agent builder, MCP compatibility, and more.
Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.
🧑🚀 全世界最好的LLM资料总结(Agent框架、辅助编程、数据处理、模型训练、模型推理、o1 模型、MCP、小语言模型、视觉语言模型) | Summary of the world's best LLM resources.
Bridge between Ollama and MCP servers, enabling local LLMs to use Model Context Protocol tools
Dify is an open-source LLM app development platform. Dify's intuitive interface combines AI workflow, RAG pipeline, agent capabilities, model management, observability features and more, letting you quickly go from prototype to production.
an easy-to-use dynamic service discovery, configuration and service management platform for building AI cloud native applications.
Awesome MCP Servers - A curated list of Model Context Protocol servers
Reviews

user_76tNb5yr
I have been using the Adafruit-MCP23008-library for several of my projects and it works flawlessly. The library is well-documented and easy to integrate, making it ideal for expanding the GPIO capabilities of a microcontroller. Thanks to Adafruit for creating such a reliable and efficient library! Highly recommended for anyone looking to extend their I/O options.