
mcp23017
Library to use MCP23017 I/O Expander chip with STM32 via i2c interface
0
Github Watches
6
Github Forks
15
Github Stars
MCP23017 library for STM32.
Library to use MCP23017 I/O Expander chip with STM32 via i2c interface.
.---------.
GPB0<->|1 \_/ 28|<->GPA7
GPB1<->| |<->GPA6
GPB2<->| M |<->GPA5
GPB3<->| C |<->GPA4
GPB4<->| P |<->GPA3
GPB5<->| 2 |<->GPA2
GPB6<->| 3 |<->GPA1
GPB7<->| 0 |<->GPA0
VDD-->| 1 |-->INTA
VSS-->| 7 |-->INTB
NC---| |-->~RESET
SCL-->| |<--A2
SDA<->| |<--A1
NC---|14 15|<--A0
'---------'
Example: Read bits from GPA then copy bits to GPB.
#include "mcp23017.h"
MCP23017_HandleTypeDef hmcp;
mcp23017_init(&hmcp, &hi2c1, MCP23017_ADDRESS_20); mcp23017_iodir(&hmcp, MCP23017_PORTA, MCP23017_IODIR_ALL_INPUT); mcp23017_iodir(&hmcp, MCP23017_PORTB, MCP23017_IODIR_ALL_OUTPUT);
while (1) { mcp23017_read_gpio(&hmcp, MCP23017_PORTA); hmcp.gpio[MCP23017_PORTB] = hmcp.gpio[MCP23017_PORTA]; mcp23017_write_gpio(&hmcp, MCP23017_PORTB); }
相关推荐
I find academic articles and books for research and literature reviews.
Confidential guide on numerology and astrology, based of GG33 Public information
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.
Converts Figma frames into front-end code for various mobile frameworks.
Take an adjectivised noun, and create images making it progressively more adjective!
Discover the most comprehensive and up-to-date collection of MCP servers in the market. This repository serves as a centralized hub, offering an extensive catalog of open-source and proprietary MCP servers, complete with features, documentation links, and contributors.
The all-in-one Desktop & Docker AI application with built-in RAG, AI agents, No-code agent builder, MCP compatibility, and more.
Micropython I2C-based manipulation of the MCP series GPIO expander, derived from Adafruit_MCP230xx
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.
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.
Reviews

user_FoSoqlxk
I've been using the mcp23017 and it's been phenomenal for expanding my I/O capabilities. Ruda has done an excellent job with this product, making it straightforward to integrate into various projects. The documentation on GitHub is clear and comprehensive, which really helps in getting started quickly. Highly recommend it for anyone looking to enhance their microcontroller projects.